]> git.mxchange.org Git - friendica.git/commitdiff
Simplified connection test
authorMichael <heluecht@pirati.ca>
Sat, 7 Nov 2020 09:58:20 +0000 (09:58 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Nov 2020 09:58:20 +0000 (09:58 +0000)
src/Database/Database.php

index 273c2985c63f250688f2e90ba510cd758ec6ee17..f8ef1c9a1e06e044851f87a21b607893b287e726 100644 (file)
@@ -386,10 +386,11 @@ class Database
                switch ($this->driver) {
                        case self::PDO:
                                $r = $this->p("SELECT 1");
-                               if ($this->isResult($r)) {
-                                       $row       = $this->toArray($r);
-                                       $connected = ($row[0]['1'] == '1');
-                               }
+                               $connected = $this->isResult($r);
+//                             if ($this->isResult($r)) {
+//                                     $row       = $this->toArray($r);
+//                                     $connected = ($row[0]['1'] == '1');
+//                             }
                                break;
                        case self::MYSQLI:
                                $connected = $this->connection->ping();