update GPL header and remove authors email address from it
[phpfspot.git] / phpfspot_db.php
index df41e73e7bd9cc31881ca8d916ffaf405f26e878..e5f1f0bd3bc1488c547658a6e62677bcd042c271 100644 (file)
@@ -2,8 +2,9 @@
 
 /***************************************************************************
  *
- * Copyright (c) by Andreas Unterkircher, unki@netshadow.at
- * All rights reserved
+ * phpfspot, presents your F-Spot photo collection in Web browsers.
+ *
+ * Copyright (c) by Andreas Unterkircher
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -206,7 +207,7 @@ class PHPFSPOT_DB {
                $row = $this->db_fetch_object($result);
                break;
             case 'pdo':
-               $row = $result[0];
+               $row = $result->fetch();
                break;
          }
          return $row;