summaryrefslogtreecommitdiffstats
path: root/codebase/db_postgre.php
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/db_postgre.php')
-rw-r--r--codebase/db_postgre.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/codebase/db_postgre.php b/codebase/db_postgre.php
index f944714..011bd47 100644
--- a/codebase/db_postgre.php
+++ b/codebase/db_postgre.php
@@ -17,6 +17,9 @@ class PostgreDBDataWrapper extends DBDataWrapper{
}
protected function select_query($select,$from,$where,$sort,$start,$count){
+ if (!$from)
+ return $select;
+
$sql="SELECT ".$select." FROM ".$from;
if ($where) $sql.=" WHERE ".$where;
if ($sort) $sql.=" ORDER BY ".$sort;