issue97, add missing DISTINCT keyword to SQL query
[phpfspot.git] / 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 = $result[0];
+               $row = $result->fetch();
                break;
          }
          return $row;