diff options
| -rw-r--r-- | app/class/table.class.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/app/class/table.class.php b/app/class/table.class.php index 5e4c823..618d938 100644 --- a/app/class/table.class.php +++ b/app/class/table.class.php @@ -37,7 +37,7 @@ abstract class table       */      public function __construct(?string $guid = NULL)      { -        if ($guid) +        if ($guid !== NULL)              $this->loadObj($guid);      } @@ -51,7 +51,7 @@ abstract class table          $guid = database::esc($guid);          if (!self::isGUID($guid)) -            throw new Exception("GUID " . $guid . " does not exist"); +            throw new Exception("GUID '" . $guid . "' does not exist");          foreach ($this->fields as $tbl => $flds)          { | 
