From: Janusz Dobrowolski Date: Sun, 10 Jan 2010 16:20:23 +0000 (+0000) Subject: Prevented wanings for sqls without 'inactive' field. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=22fa476a0a6b25e8bd60004833034f9450160761;p=textcart.git Prevented wanings for sqls without 'inactive' field. --- diff --git a/includes/ui/db_pager_view.inc b/includes/ui/db_pager_view.inc index 4bc4994..d941cf9 100644 --- a/includes/ui/db_pager_view.inc +++ b/includes/ui/db_pager_view.inc @@ -162,7 +162,7 @@ function display_db_pager(&$pager) { start_row("class='navibar'"); $colspan = count($pager->columns); - $inact = $pager->inactive_ctrl==true + $inact = @$pager->inactive_ctrl==true ? ' '.checkbox(null, 'show_inactive', null, true). _("Show also Inactive") : ''; if($pager->rec_count) { echo ""; @@ -170,7 +170,7 @@ function display_db_pager(&$pager) { $but_pref = $pager->name.'_page_'; start_table(); start_row(); - if ($pager->inactive_ctrl) + if (@$pager->inactive_ctrl) submit('Update', _('Update'), true, '', null); // inactive update echo navi_button_cell($but_pref.'first', _('First'), $pager->first_page, 'right'); echo navi_button_cell($but_pref.'prev', _('Prev'), $pager->prev_page,'right');