Commit 62ff29cc authored by tbrehm's avatar tbrehm
Browse files

fixed: FS#595 - add cp user error

parent e6d68c2e
...@@ -61,7 +61,7 @@ class page_action extends tform_actions { ...@@ -61,7 +61,7 @@ class page_action extends tform_actions {
function onBeforeUpdate() { function onBeforeUpdate() {
global $app, $conf; global $app, $conf;
if(!in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) { if(@is_array($this->dataRecord['modules']) && !in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) {
$app->tform->errorMessage .= $app->tform->wordbook['startmodule_err']; $app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment