Commit 573ca0b7a135fbd7c2b700a3e13ab9a3576998a9

Authored by Neil Blakey-Milner
1 parent 306e0f2c

Return an empty array if the action slot isn't populated.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4976 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/actions/actionregistry.inc.php
... ... @@ -18,7 +18,7 @@ class KTActionRegistry {
18 18 }
19 19  
20 20 function getActions($slot) {
21   - return $this->actions[$slot];
  21 + return KTUtil::arrayGet($this->actions, $slot, array());
22 22 }
23 23  
24 24 function getActionByNsname($nsname) {
... ...