summaryrefslogtreecommitdiffstats
path: root/class/CommonTable.php
diff options
context:
space:
mode:
Diffstat (limited to 'class/CommonTable.php')
-rw-r--r--class/CommonTable.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/class/CommonTable.php b/class/CommonTable.php
index ba3f7ad..0aeeb29 100644
--- a/class/CommonTable.php
+++ b/class/CommonTable.php
@@ -262,6 +262,10 @@ abstract class CommonTable
**/
public function request ($crit='')
{
+ if (is_string($crit) && strpos($crit,' ')) {
+ // $crit is a full SQL command
+ return new TableIterator ($this->db, $crit);
+ }
return new TableIterator ($this->db, $this->table, $crit);
}