diff options
Diffstat (limited to 'frontends/php/include/screens.inc.php')
| -rw-r--r-- | frontends/php/include/screens.inc.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/frontends/php/include/screens.inc.php b/frontends/php/include/screens.inc.php index 14a12d02..688e950b 100644 --- a/frontends/php/include/screens.inc.php +++ b/frontends/php/include/screens.inc.php @@ -21,11 +21,9 @@ <?php function add_screen($name,$cols,$rows) { - global $ERROR_MSG; - if(!check_right("Screen","A",0)) { - $ERROR_MSG="Insufficient permissions"; + error("Insufficient permissions"); return 0; } @@ -35,11 +33,9 @@ function update_screen($screenid,$name,$cols,$rows) { - global $ERROR_MSG; - if(!check_right("Screen","U",0)) { - $ERROR_MSG="Insufficient permissions"; + error("Insufficient permissions"); return 0; } @@ -81,8 +77,6 @@ function get_screen_by_screenid($screenid) { - global $ERROR_MSG; - $sql="select * from screens where screenid=$screenid"; $result=DBselect($sql); if(DBnum_rows($result) == 1) @@ -91,7 +85,7 @@ } else { - $ERROR_MSG="No screen with screenid=[$screenid]"; + error("No screen with screenid=[$screenid]"); } return $result; } |
