Skip to content

Commit 15cbad4

Browse files
committed
Use count instead of sizeof
1 parent b332545 commit 15cbad4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

controller/admin_controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ protected function add_edit_page_data($entity)
312312

313313
// Set output vars for display in the template
314314
$this->template->assign_vars(array(
315-
'S_ERROR' => (bool) sizeof($errors),
316-
'ERROR_MSG' => sizeof($errors) ? implode('<br />', $errors) : '',
315+
'S_ERROR' => (bool) count($errors),
316+
'ERROR_MSG' => count($errors) ? implode('<br />', $errors) : '',
317317

318318
'PAGES_TITLE' => $entity->get_title(),
319319
'PAGES_ROUTE' => $entity->get_route(),

operators/page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function insert_page_links($page_id, $link_ids)
271271
);
272272
}
273273

274-
if (sizeof($sql_ary))
274+
if (count($sql_ary))
275275
{
276276
// Insert the new page link data for this page
277277
$this->db->sql_multi_insert($this->pages_pages_links_table, $sql_ary);

0 commit comments

Comments
 (0)