do not error on directoryEdit save submit
This commit is contained in:
@ -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 (is_null($item_id) && isset($file['id']) && $file['id'] > 0) $item_id = $file['id'];
|
||||||
|
|
||||||
if ($item_id < 1) {
|
if ($item_id < 1) {
|
||||||
echo '<span class="msg_error"><span class="icon-attention-circled"></span> ';
|
// only print message if not posting a case_directoryEdit submit
|
||||||
printf(ERROR_FILE_NOT_EXISTS, $item_id);
|
if (empty($serendipity['POST']['save'])) {
|
||||||
echo "</span>\n";
|
echo '<span class="msg_error"><span class="icon-attention-circled"></span> ';
|
||||||
|
printf(ERROR_FILE_NOT_EXISTS, $item_id);
|
||||||
|
echo "</span>\n";
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user