DataObjects/Events.php
authorKH Lau <khlau@roojs.com>
Mon, 23 Oct 2017 08:00:13 +0000 (16:00 +0800)
committerKH Lau <khlau@roojs.com>
Mon, 23 Oct 2017 08:00:13 +0000 (16:00 +0800)
DataObjects/Events.php

index 60f1828..9c8f216 100644 (file)
@@ -120,7 +120,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         
         if (isset($q['on_table']) && !strlen($q['on_table'])) {
             // empty ontable queries.. these are valid..
-            $this->whereAdd("$tn.on_table = ''");
+            $this->whereAdd("{$tn}.on_table = ''");
         }
       
         if (isset($q['query']['person_sum'])) {