Fixed a PostgreSQL issue
authorMarcel Werk <burntime@woltlab.com>
Thu, 5 Jan 2012 16:03:55 +0000 (17:03 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 5 Jan 2012 16:03:55 +0000 (17:03 +0100)
wcfsetup/install/files/lib/system/database/editor/PostgreSQLDatabaseEditor.class.php

index 18eeea23d4deb0b92b0dc88b06be92efcd98b93d..aae7fcb63646704a77e6593aab3b5afd95d0d22c 100644 (file)
@@ -62,7 +62,7 @@ class PostgreSQLDatabaseEditor extends DatabaseEditor {
                $statement = $this->dbObj->prepareStatement($sql);
                $statement->execute(array($tableName));
                while ($row = $statement->fetchArray()) {
-                       $indices[] = $index['indexname'];
+                       $indices[] = $row['indexname'];
                }
                
                return $indices;