diff --git a/classes/script_start.php b/classes/script_start.php index 242ee830..91af630d 100644 --- a/classes/script_start.php +++ b/classes/script_start.php @@ -2096,7 +2096,7 @@ function update_tracker($Action, $Updates, $ToIRC = false) { send_irc("PRIVMSG #tracker :{$Attempts} {$Err} {$Get}"); if($Cache->get_value('ocelot_error_reported') === false) { send_irc("PRIVMSG ".ADMIN_CHAN." :Failed to update ocelot: ".$Err." : ".$Get); - $Cache->cache_value('ocelot_error_reported', true); + $Cache->cache_value('ocelot_error_reported', true, 900); } } return ($Return == "success"); diff --git a/sections/collages/new.php b/sections/collages/new.php index cbb6155c..fb25845a 100644 --- a/sections/collages/new.php +++ b/sections/collages/new.php @@ -2,10 +2,25 @@ show_header('Create a collage'); if (!check_perms('site_collages_renamepersonal')) { - $ChangeJS = 'OnChange="if ( this.options[this.selectedIndex].value == \'0\') { namebox.style.display = \'none\'; personal.style.display = \'inline\'; } else { namebox.style.display = \'inline\'; personal.style.display = \'none\'; }"'; + $ChangeJS = "OnChange=\"if ( this.options[this.selectedIndex].value == '0') { $('#namebox').hide(); $('#personal').show(); } else { $('#namebox').show(); $('#personal').hide(); }\""; +} + +$Name = $_REQUEST['name']; +$Category = $_REQUEST['cat']; +$Description = $_REQUEST['descr']; +$Tags = $_REQUEST['tags']; +$Error = $_REQUEST['err']; + +if (!check_perms('site_collages_renamepersonal') && $Category === '0') { + $NoName = true; } ?>