]> git.mxchange.org Git - friendica.git/commitdiff
Test the tes
authorMichael <heluecht@pirati.ca>
Sat, 7 Nov 2020 10:12:31 +0000 (10:12 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Nov 2020 10:12:31 +0000 (10:12 +0000)
src/Database/Database.php

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