summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index 4a3a5b8c..99fdfcac 100644
--- a/play/index.php
+++ b/play/index.php
@@ -226,7 +226,10 @@ if (!$media->file OR !is_readable($media->file)) {
}
// make fread binary safe
-set_magic_quotes_runtime(0);
+// This feature has been DEPRECATED as of PHP 5.3.0
+if(version_compare(PHP_VERSION, '5.3.0', '<=')) {
+ set_magic_quotes_runtime(0);
+}
// don't abort the script if user skips this song because we need to update now_playing
ignore_user_abort(TRUE);