From b493435b5b69a814051bb7909eb258ad061f26bb Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 23 Nov 2008 23:52:06 +0000 Subject: [PATCH] MINOR: Small boundary condition bugfix --- code/PostgreSQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/PostgreSQLDatabase.php b/code/PostgreSQLDatabase.php index 27762f8..7f38d8b 100644 --- a/code/PostgreSQLDatabase.php +++ b/code/PostgreSQLDatabase.php @@ -347,7 +347,7 @@ class PostgreSQLDatabase extends Database { AND NOT b.attisdropped AND b.attnum>0")->column(); $output = array(); - foreach($fields as $field) { + if($fields) foreach($fields as $field) { $output[$field] = true; }