fetchSingleRow wasn't used before and produced a bug. fixed now.
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 6 Jan 2008 16:48:50 +0000 (17:48 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 6 Jan 2008 16:48:50 +0000 (17:48 +0100)
Signed-off-by: Arun Persaud <arun@nubati.net>
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot_db.php

index df41e73e7bd9cc31881ca8d916ffaf405f26e878..807cf0feb36ca072307497ba4d920208b4b27b3c 100644 (file)
@@ -206,7 +206,7 @@ class PHPFSPOT_DB {
                $row = $this->db_fetch_object($result);
                break;
             case 'pdo':
                $row = $this->db_fetch_object($result);
                break;
             case 'pdo':
-               $row = $result[0];
+               $row = $result->fetch();
                break;
          }
          return $row;
                break;
          }
          return $row;