do not error on directoryEdit save submit
This commit is contained in:
parent
5be90fd7ea
commit
08c09d1d65
@ -3378,9 +3378,12 @@ function serendipity_moveMediaDirectory($oldDir, $newDir, $type = 'dir', $item_i
|
||||
if (is_null($item_id) && isset($file['id']) && $file['id'] > 0) $item_id = $file['id'];
|
||||
|
||||
if ($item_id < 1) {
|
||||
echo '<span class="msg_error"><span class="icon-attention-circled"></span> ';
|
||||
printf(ERROR_FILE_NOT_EXISTS, $item_id);
|
||||
echo "</span>\n";
|
||||
// only print message if not posting a case_directoryEdit submit
|
||||
if (empty($serendipity['POST']['save'])) {
|
||||
echo '<span class="msg_error"><span class="icon-attention-circled"></span> ';
|
||||
printf(ERROR_FILE_NOT_EXISTS, $item_id);
|
||||
echo "</span>\n";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user