1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Handle case where no category icon specified - thanks NowWhat

This commit is contained in:
e107steved 2010-03-02 22:35:52 +00:00
parent b039f583ab
commit 9ae8b60c0c

View File

@ -184,7 +184,7 @@ for($cal_c = 1; $cal_c <= $numberdays; $cal_c++)
$title = " title='{$cal_event_count} " . EC_LAN_106 . "' ";
}
}
if (is_file(e_PLUGIN.$cal_event_icon)) $cal_img = "<img src='".e_PLUGIN_ABS.$cal_event_icon."' alt='' />";
if (!empty($cal_events[$cal_c]['0']) && is_readable(e_PLUGIN.$cal_event_icon)) $cal_img = "<img src='".e_PLUGIN_ABS.$cal_event_icon."' alt='' />";
//height='10' width='10'
if (isset($cal_recent[$cal_c]) && $cal_recent[$cal_c])
{