X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_db.php;h=807cf0feb36ca072307497ba4d920208b4b27b3c;hp=e9c99ce62ad906e5345a154c275f1d5d6959bd59;hb=3966667f0817ca935d214762830800f66b867855;hpb=42421caef780487aeaa633f62ae08ec397865b68;ds=sidebyside diff --git a/phpfspot_db.php b/phpfspot_db.php index e9c99ce..807cf0f 100644 --- a/phpfspot_db.php +++ b/phpfspot_db.php @@ -73,6 +73,7 @@ class PHPFSPOT_DB { $this->setConnStatus(false); } else { + sqlite3_create_function($this->db, 'basename', 1, 'basename'); $this->setConnStatus(true); } break; @@ -205,7 +206,7 @@ class PHPFSPOT_DB { $row = $this->db_fetch_object($result); break; case 'pdo': - $row = $result[0]; + $row = $result->fetch(); break; } return $row;