Skip to content

Commit

Permalink
Merge pull request #134 from mariusvw/master
Browse files Browse the repository at this point in the history
Removed variabale undefined error & fixed undefined offset errors
  • Loading branch information
Klap-in committed Aug 1, 2022
2 parents 34588dd + 6936d28 commit 10a8c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function _checkperm(&$event, $param) {
function _extendJSINFO(&$event, $param) {
global $INFO, $JSINFO;
$JSINFO['isadmin'] = (int) $INFO['isadmin'];
$JSINFO['isauth'] = (int) $INFO['userinfo'];
$JSINFO['isauth'] = isset($INFO['userinfo']) ? (int) $INFO['userinfo'] : 0;
}

/**
Expand Down Expand Up @@ -83,7 +83,7 @@ function _purgecache(&$event, $param) {
} else if($aclcache == 'groups') {
//Cache per groups
global $INFO;
if($INFO['userinfo']['grps']) $newkey = implode('#', $INFO['userinfo']['grps']);
if(isset($INFO['userinfo']['grps'])) $newkey = implode('#', $INFO['userinfo']['grps']);
}
if($newkey) {
$cache->key .= "#".$newkey;
Expand Down
2 changes: 1 addition & 1 deletion admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private function _form_open($act, $n = -1) {
* @author Samuele Tognini <samuele@samuele.netsons.org>
*/
function _form_close($act) {
ptln(' <input type="submit" name="btn" '.$this->repos['status'][$n].' value="'.$this->getLang($act).'" />');
ptln(' <input type="submit" name="btn" value="'.$this->getLang($act).'" />');
ptln(' </form>');
}

Expand Down

0 comments on commit 10a8c20

Please sign in to comment.