Alexander Nicolaysen Sørnes : category: Don't use union operator to merge arrays in getOrderedList()
Alexander Nicolaysen Sørnes
asornes at winehq.org
Wed Aug 5 08:02:07 CDT 2009
Module: appdb
Branch: master
Commit: 304b7e9f0056033d9006bffa74ee85184bc74cd7
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=304b7e9f0056033d9006bffa74ee85184bc74cd7
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Wed Aug 5 15:00:44 2009 +0200
category: Don't use union operator to merge arrays in getOrderedList()
---
include/category.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/category.php b/include/category.php
index 87f8c9d..8b7713e 100644
--- a/include/category.php
+++ b/include/category.php
@@ -171,7 +171,7 @@ class Category {
$oCat->sName = 'Main';
$aCats = array($oCat);
- $aCats += $oCat->getSubCatList(1);
+ $aCats = array_merge($aCats, $oCat->getSubCatList(1));
return $aCats;
}
More information about the wine-cvs
mailing list