Fix warning
This commit is contained in:
parent
f1e6ac522d
commit
65d17b569d
@ -444,7 +444,7 @@ function dolWebsiteIncrementCounter($websiteid, $websitepagetype, $websitepageid
|
|||||||
$sql .= " pageviews_total = pageviews_total + 1,";
|
$sql .= " pageviews_total = pageviews_total + 1,";
|
||||||
$sql .= " pageviews_month = pageviews_month + 1,";
|
$sql .= " pageviews_month = pageviews_month + 1,";
|
||||||
// if last access was done during previous month, we save pageview_month into pageviews_previous_month
|
// if last access was done during previous month, we save pageview_month into pageviews_previous_month
|
||||||
$sql .= " pageviews_previous_month = ".$db->ifsql("lastaccess < '".$db->idate(dol_mktime(0, 0, 0, $tmpnow['month'], 1, $tmpnow['year'], 'gmt', 0), 'gmt')."'", 'pageviews_month', 'pageviews_previous_month').",";
|
$sql .= " pageviews_previous_month = ".$db->ifsql("lastaccess < '".$db->idate(dol_mktime(0, 0, 0, $tmpnow['mon'], 1, $tmpnow['year'], 'gmt', 0), 'gmt')."'", 'pageviews_month', 'pageviews_previous_month').",";
|
||||||
$sql .= " lastaccess = '".$db->idate(dol_now('gmt'), 'gmt')."'";
|
$sql .= " lastaccess = '".$db->idate(dol_now('gmt'), 'gmt')."'";
|
||||||
$sql .= " WHERE rowid = ".((int) $websiteid);
|
$sql .= " WHERE rowid = ".((int) $websiteid);
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|||||||
@ -51,7 +51,7 @@ if (!is_object($website)) {
|
|||||||
$website->fetch(0, $websitekey);
|
$website->fetch(0, $websitekey);
|
||||||
}
|
}
|
||||||
// Define $websitepage if we have $websitepagefile defined
|
// Define $websitepage if we have $websitepagefile defined
|
||||||
if (!$pageid && !empty($websitepagefile)) {
|
if (empty($pageid) && !empty($websitepagefile)) {
|
||||||
$pageid = str_replace(array('.tpl.php', 'page'), array('', ''), basename($websitepagefile));
|
$pageid = str_replace(array('.tpl.php', 'page'), array('', ''), basename($websitepagefile));
|
||||||
if ($pageid == 'index.php') {
|
if ($pageid == 'index.php') {
|
||||||
$pageid = $website->fk_default_home;
|
$pageid = $website->fk_default_home;
|
||||||
|
|||||||
@ -375,7 +375,7 @@ if ($mode != 'future') {
|
|||||||
print img_picto('', 'stock', 'class="pictofixedwidth"').$langs->trans("Warehouse").' :';
|
print img_picto('', 'stock', 'class="pictofixedwidth"').$langs->trans("Warehouse").' :';
|
||||||
print '</span> ';
|
print '</span> ';
|
||||||
$selected = ((GETPOSTISSET('search_fk_warehouse') || GETPOSTISSET('fk_warehouse')) ? $search_fk_warehouse : 'ifonenodefault');
|
$selected = ((GETPOSTISSET('search_fk_warehouse') || GETPOSTISSET('fk_warehouse')) ? $search_fk_warehouse : 'ifonenodefault');
|
||||||
print $formproduct->selectWarehouses($selected, 'search_fk_warehouse', '', 1, 0, 0, $langs->trans('Warehouse'), 0, 0, null, '', null, 1, false, 'e.ref', 1);
|
print $formproduct->selectWarehouses($selected, 'search_fk_warehouse', '', 1, 0, 0, $langs->trans('Warehouse'), 0, 0, null, 'minwidth200', null, 1, false, 'e.ref', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user