]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Session/DatabaseSessionHandler.php
Add new Cache console command
[friendica.git] / src / Core / Session / DatabaseSessionHandler.php
index f9ceaabaf1910bd356f0a96aff3dfb44429cd375..f249b37fd7a750ca97997062aee0e9382f5adbe3 100644 (file)
@@ -5,7 +5,6 @@ namespace Friendica\Core\Session;
 use Friendica\BaseObject;
 use Friendica\Core\Session;
 use Friendica\Database\DBA;
-use Friendica\Database\DBM;
 use SessionHandlerInterface;
 
 require_once 'boot.php';
@@ -15,7 +14,7 @@ require_once 'include/text.php';
 /**
  * SessionHandler using database
  *
- * @author Hypolite Petovan <mrpetovan@gmail.com>
+ * @author Hypolite Petovan <hypolite@mrpetovan.com>
  */
 class DatabaseSessionHandler extends BaseObject implements SessionHandlerInterface
 {
@@ -31,7 +30,7 @@ class DatabaseSessionHandler extends BaseObject implements SessionHandlerInterfa
                }
 
                $session = DBA::selectFirst('session', ['data'], ['sid' => $session_id]);
-               if (DBM::is_result($session)) {
+               if (DBA::isResult($session)) {
                        Session::$exists = true;
                        return $session['data'];
                }