Permalink
Browse files

replaced empty with isset in ajax call to meta.php:_ajax:cked_upload

  • Loading branch information...
turnermm committed Feb 19, 2018
1 parent 263ea69 commit 10f10e0accd8358734df612b017b7b0216e58905
Showing with 2 additions and 2 deletions.
  1. +2 −2 action/meta.php
View
@@ -103,7 +103,7 @@ function _ajax_call(Doku_Event $event, $param) {
$oldf = $id;
$size_tm = $INPUT->str('delsize');
$this->ajax_debug('size_tm='.$size_tm);
if(!empty($size_tm)) {
if(isset($size_tm)) {
list($size,$ft) = explode(';',$size_tm);
$size=trim($size);
$ft=trim($ft);
@@ -122,7 +122,7 @@ function _ajax_call(Doku_Event $event, $param) {
$this->ajax_debug("$fn not found");
return;
}
if(!empty($ft) && file_exists($fn)) {
if(isset($ft) && file_exists($fn)) {
$newf = mediaFN($id,$ft);
$this->ajax_debug("newf: $newf fn: $fn");
if(file_exists($fn)){

0 comments on commit 10f10e0

Please sign in to comment.