Skip to content

Commit

Permalink
Prevent error when save a picture
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Aug 11, 2023
1 parent b966cd8 commit 42b9c1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ static function configUpdate($input) {
$input = self::checkCSS('internal', t_trademark('Internal Page'), $input, $old);

foreach ($input as $key => $value) {
if (str_starts_with($key, '_uploader_')) {
unset($input[$key]);
continue;
}
if ($value && strpos($key, '_blank_') === 0) {
$name = substr($key, 7);
$input[$name] = '';
Expand Down

0 comments on commit 42b9c1a

Please sign in to comment.