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:
parent
3f6fe6cd85
commit
0655cb96fd
@ -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);
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user