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=642996d363598ad9b919f261e39c04f25ebabeb1;hpb=e8bc8f7d5f8dea6906f6e61ba464353c92e87ccf;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;