diff --git a/admin/event.php b/admin/event.php index 07b39d1..e1f5868 100644 --- a/admin/event.php +++ b/admin/event.php @@ -59,7 +59,7 @@ $GLOBALS['xoopsTpl']->assign('eventCount', $eventCount); $GLOBALS['xoopsTpl']->assign('wgevents_url', \WGEVENTS_URL); $GLOBALS['xoopsTpl']->assign('wgevents_upload_url', \WGEVENTS_UPLOAD_URL); - $GLOBALS['xoopsTpl']->assign('wgevents_upload_eventlogos_url_uid', \WGEVENTS_UPLOAD_EVENTLOGOS_URL . '/' . $uidCurrent . '/'); + $GLOBALS['xoopsTpl']->assign('wgevents_upload_eventlogos_url', \WGEVENTS_UPLOAD_EVENTLOGOS_URL . '/'); $GLOBALS['xoopsTpl']->assign('use_gmaps', $helper->getConfig('use_gmaps')); $GLOBALS['xoopsTpl']->assign('use_wggallery', $helper->getConfig('use_wggallery')); $GLOBALS['xoopsTpl']->assign('use_register', $helper->getConfig('use_register')); @@ -154,10 +154,13 @@ $uploaderErrors .= '
' . $uploader->getErrors(); } } else { - if ($filename > '') { + if ('' != $filename) { $uploaderErrors .= '
' . $uploader->getErrors(); } - $eventObj->setVar('logo', Request::getString('logo')); + $filename = Request::getString('logo'); + if ('' != $filename) { + $eventObj->setVar('logo', $filename); + } } $eventObj->setVar('desc', Request::getText('desc')); $eventDatefromArr = Request::getArray('datefrom'); diff --git a/event.php b/event.php index 796779e..36aec3e 100644 --- a/event.php +++ b/event.php @@ -258,7 +258,10 @@ if ($filename > '') { $uploaderErrors .= '
' . $uploader->getErrors(); } - $eventObj->setVar('logo', Request::getString('logo')); + $filename = Request::getString('logo'); + if ('' != $filename) { + $eventObj->setVar('logo', $filename); + } } $eventObj->setVar('desc', Request::getText('desc')); $eventDatefromArr = Request::getArray('datefrom'); diff --git a/templates/admin/wgevents_admin_event.tpl b/templates/admin/wgevents_admin_event.tpl index c6db6a9..e73ea56 100644 --- a/templates/admin/wgevents_admin_event.tpl +++ b/templates/admin/wgevents_admin_event.tpl @@ -51,7 +51,7 @@ <{$event.catname}> <{$event.identifier}> <{$event.name}> - events + events <{$event.desc_short_admin}> <{$event.datefrom_text}> <{$event.dateto_text}>