summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sqlbox/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php
index 9940306..1f7cf41 100644
--- a/sqlbox/view.php
+++ b/sqlbox/view.php
@@ -84,7 +84,7 @@ $correct = true;
echo $OUTPUT->heading('SQL Query: '.$data->sqlbox_query);
if (isset($data->sqlbox_query)) {
$db = pg_connect("host=localhost dbname=sqlbox user=sqlbox password=foobar");
- if (!db)
+ if (!$db)
error("Failed to connect to sqlbox db");
$table = db_table_from_query($db, $data->sqlbox_query);