1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

PHP Notice Removal

This commit is contained in:
Cameron 2016-03-13 01:16:37 -08:00
parent 3f6fe6cd85
commit 0655cb96fd
3 changed files with 16 additions and 4 deletions

View File

@ -343,8 +343,14 @@ class cron_admin_ui extends e_admin_ui
$mes = e107::getMessage();
$frm = e107::getForm();
$lastload = intval(@file_get_contents(e_CACHE.'cronLastLoad.php'));
if(file_exists(e_CACHE.'cronLastLoad.php'))
{
$lastload = intval(@file_get_contents(e_CACHE.'cronLastLoad.php'));
}
else
{
$lastload = 0;
}
$ago = (time() - $lastload);

View File

@ -2063,6 +2063,11 @@ class e_form
$text = '';
if(empty($option_array))
{
return $this->option('','');
}
foreach ($option_array as $value => $label)
{
if(is_array($label))

View File

@ -302,7 +302,8 @@ TEMPL;
$style = vartrue($img['style']) ? ' style="'.$img['style'].'"' : '';
$class = vartrue($img['class']) ? ' class="'.$img['class'].'"' : '';
$alt = vartrue($img['alt']) ? ' alt="'.$img['alt'].'"' : '';
$title = vartrue($img['title']) ? ' title="'.$img['title'].'"' : '';
$title = vartrue($img['title']) ? ' title="'.$img['title'].'"' : '';
$srcset = vartrue($img['srcset']) ? 'srcset="'.$img['srcset'].'"' : '';
$qr = $this->thumbUrlDecode($img['src']);
@ -315,7 +316,7 @@ TEMPL;
$qr['ebase'] = true;
$src = e107::getParser()->thumbUrl($qr['src'],$qr);
$replacement = '<img src="'.$src.'" '.$style.$alt.$title.$class.$width.$height.' />';
$replacement = '<img src="'.$src.'" '.$srcset.$style.$alt.$title.$class.$width.$height.' />';
$text = preg_replace($regexp, $replacement, $text);