]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
replace deprecated split
authorChristian Weiske <cweiske@cweiske.de>
Tue, 26 Apr 2011 04:48:26 +0000 (06:48 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 26 Apr 2011 04:48:26 +0000 (06:48 +0200)
src/SemanticScuttle/Service/User.php

index 091ea4d5f9fe6b15c9d9bf8dbbfdaac5d8c6fe3b..7f0624e2747a445bf67b78c111095f351c970622 100644 (file)
@@ -359,7 +359,7 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService
             return (int)$_SESSION[$this->getSessionKey()];
 
         } else if (isset($_COOKIE[$this->getCookieKey()])) {
-            $cook = split(':', $_COOKIE[$this->getCookieKey()]);
+            $cook = explode(':', $_COOKIE[$this->getCookieKey()]);
             //cookie looks like this: 'id:md5(username+password)'
             $query = 'SELECT * FROM '. $this->getTableName() .
                      ' WHERE MD5(CONCAT('.$this->getFieldName('username') .