From b63009ae7a81578d0a76fa7fee71a9ce5ecc00ab Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 11 Dec 2006 03:54:51 +0000 Subject: [PATCH] r1364: Change the array_keys()/is_array() checking combo to a simple isset() --- showhistory.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/showhistory.php b/showhistory.php index e368db7..90b28f2 100644 --- a/showhistory.php +++ b/showhistory.php @@ -51,7 +51,6 @@ $lookupfields = array( 'product' => 'title', 'component' => 'title' ); -$lookupkeys = array_keys($lookupfields); // ################################################################### @@ -126,7 +125,7 @@ foreach ($logs AS $dateline => $logitems) { $log['field'] = ucwords($matches[1]); - if (in_array($matches[1], $lookupkeys)) + if (isset($lookupfields["$matches[1]"])) { $lookup = $matches[1]; $log['original'] = $bugsys->datastore["$lookup"]["$log[original]"][ $lookupfields["$lookup"] ]; -- 2.43.5