Skip to content

Commit 2873903

Browse files
committed
Remplace sizeof() with count()
1 parent 69328af commit 2873903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ protected function generate_general_query($type, $contrib_id)
392392
*/
393393
protected function generate_contrib_query($versions, $categories, $search_subcategories)
394394
{
395-
if (!empty($categories) && (sizeof($categories) != 1 || $categories[0] != 0))
395+
if (!empty($categories) && (count($categories) != 1 || $categories[0] != 0))
396396
{
397397
// Grab the children
398398
if ($search_subcategories)

0 commit comments

Comments
 (0)