diff options
author | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-13 08:11:09 +0000 |
---|---|---|
committer | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-13 08:11:09 +0000 |
commit | 4b5756ba9d8ee9e83c1ba4624b461b4746e49e82 (patch) | |
tree | 2e46772da9d25197fd847b273ca1f9b882ad3e34 /lib/class/stream.class.php | |
parent | 93f4a26ab07207e1f9a8e716a82c5d8812d5344c (diff) | |
download | ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.gz ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.bz2 ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.zip |
Miscellaneous cleanup.
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r-- | lib/class/stream.class.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 5deee98e..35f0f4a3 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -186,7 +186,7 @@ class Stream { $db_results = Dba::write($sql); foreach ($append_array as $append_agent) { - if (strstr(strtoupper($agent),$append_agent)) { + if (strpos(strtoupper($agent), $append_agent) !== false) { // We're done here jump ship! return true; } @@ -828,14 +828,15 @@ class Stream { /** * run_playlist_method - * This takes care of the different types of 'playlist methods' the reason this is here - * is because it deals with streaming rather then playlist mojo. If something needs to happen - * this will echo the javascript required to cause a reload of the iframe. + * This takes care of the different types of 'playlist methods'. The + * reason this is here is because it deals with streaming rather than + * playlist mojo. If something needs to happen this will echo the + * javascript required to cause a reload of the iframe. */ public static function run_playlist_method() { // If this wasn't ajax included run away - if (AJAX_INCLUDE != '1') { return false; } + if (!defined('AJAX_INCLUDE')) { return false; } // If we're doin the flash magic then run away as well if (Config::get('play_type') == 'xspf_player') { return false; } |