From b69995e1d0bcd5ea1185acfda4899e11f1d8e624 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2009 15:19:28 +0200 Subject: Some fixes --- Controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Controller.php') diff --git a/Controller.php b/Controller.php index 8f8bbd8..d5813a1 100644 --- a/Controller.php +++ b/Controller.php @@ -224,7 +224,7 @@ class Controller if (empty($data)) { App::log("Attempted to insert empty data"); - exit(App::error("Insert failed - nothing to insert")); + return App::error("Nothing to insert"); } $insert = ""; @@ -273,7 +273,7 @@ class Controller } if (empty($data)) { - exit(self::error("Update with empty parameters")); + return App::error("Update with empty parameters"); } if (empty($where)) { @@ -320,7 +320,7 @@ class Controller $file = "../system/views/{$this->table}/{$view}.{$type}"; if (!is_file($file)) { - exit(App::error("{$this->table}_{$view}_{$type}: no such view")); + return App::error("{$this->table}_{$view}_{$type}: no such view"); } if ($data) { -- cgit v1.2.3