com web/bugs: Fix the check to check the correct array: include/functions.php

From: Date: Thu, 24 Aug 2017 08:01:25 +0000
Subject: com web/bugs: Fix the check to check the correct array: include/functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-26341@lists.php.net to get a copy of this message
Commit: d29f322838217e6824236af8dac6c1a9852b9d08 Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 24 Aug 2017 10:01:25 +0200 Parents: 43b45b690c191aa60cb7742be9eb2575a152203f Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=d29f322838217e6824236af8dac6c1a9852b9d08 Log: Fix the check to check the correct array Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index 13fa5d4..4ffe195 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1968,7 +1968,7 @@ function backtrace_inline_menu($platform) function admin_table_static(array $header, array $rows) { - if (!$header || !$rows || sizeof($header) != sizeof($rows)) { + if (!$header || !$rows || sizeof($header) != sizeof($rows[0])) { return; }

« previous php.webmaster (#26341) next »