issue74, remove references as they seem to be deprecated
authorAndreas Unterkircher <unki@netshadow.at>
Thu, 1 Nov 2007 15:46:15 +0000 (15:46 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Thu, 1 Nov 2007 15:46:15 +0000 (15:46 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@281 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
phpfspot_db.php

index 57551f39abc41f3df44ae10f1184c9c95889dbc0..559e4f55184164c763fefb408cb0a838ef51afae 100644 (file)
@@ -50,14 +50,14 @@ class PHPFSPOT {
 
       $this->cfg = new PHPFSPOT_CFG;
 
-      $this->db  = new PHPFSPOT_DB(&$this, $this->cfg->fspot_db);
+      $this->db  = new PHPFSPOT_DB($this, $this->cfg->fspot_db);
       
       if(!is_writeable(dirname($this->cfg->phpfspot_db))) {
          print dirname($this->cfg->phpfspot_db) .": directory is not writeable!";
          exit(1);
       }
          
-      $this->cfg_db = new PHPFSPOT_DB(&$this, $this->cfg->phpfspot_db);
+      $this->cfg_db = new PHPFSPOT_DB($this, $this->cfg->phpfspot_db);
       if(!is_writeable($this->cfg->phpfspot_db)) {
          print $this->cfg->phpfspot_db ." is not writeable for user ". $this->getuid() ."\n";
          exit(1);
index fba87b3dc818b4eb172067fb9a0f610709c274a2..a3f1234653201ed7aaf5c7bb26c8e3cc67eaf7f3 100644 (file)
@@ -125,7 +125,7 @@ class PHPFSPOT_DB {
 
    } // db_exec()
 
-   public function db_fetch_object(&$resource)
+   public function db_fetch_object($resource)
    {
       return sqlite3_fetch_array($resource);