trueinnovation - Thank You.
- People that are having problems please Beta the Change. If it works I will update the Zip.
modules/gallery_random.php
Got it...
Change this (around line 83):
Code:
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
{
if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
{
continue;
}
if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
{
$galleryperms["$option"] = $value;
}
}
to this:
Code:
if (!empty($gallery_permissions["$usergroupid"]))
{
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)
{
if (($option == 'gallery_maxcats' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['cancreatecategories'])) OR ($option == 'gallery_maxdiskspace' AND !($gallery_permissions["$usergroupid"]['gallery_perms'] & $gallerypermissionsbit['canuploadimages'])))
{
continue;
}
if (((($value > $galleryperms["$option"] AND $galleryperms["$option"] != '0') OR !$value) AND $option != 'gallery_perms'))
{
$galleryperms["$option"] = $value;
}
}
}