aboutsummaryrefslogtreecommitdiffstats
path: root/Controller.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mekanisti.fi>2009-10-26 15:19:28 +0200
committerFilipp Lepalaan <filipp@mekanisti.fi>2009-10-26 15:19:28 +0200
commitb69995e1d0bcd5ea1185acfda4899e11f1d8e624 (patch)
treedb0a875dad27749ee2c072028cec32f867268392 /Controller.php
parent735c8bf38f0b1c66470fdff312eacfcc21ab8ae8 (diff)
downloadmain-b69995e1d0bcd5ea1185acfda4899e11f1d8e624.tar.gz
main-b69995e1d0bcd5ea1185acfda4899e11f1d8e624.tar.bz2
main-b69995e1d0bcd5ea1185acfda4899e11f1d8e624.zip
Some fixes
Diffstat (limited to 'Controller.php')
-rw-r--r--Controller.php6
1 files changed, 3 insertions, 3 deletions
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) {