MDL-39496 Admin: Reduce excessive is_array tests in admin_category
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 3 May 2013 13:13:17 +0000 (14:13 +0100)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 3 May 2013 13:31:28 +0000 (14:31 +0100)
commit42b53d4650064023783f52f4588ade0fb1f2c4eb
treedd655ec5bcae9373e7cb7164d7379d3c4b363419
parent95190fda69b0e39f39783f93eb4b7822be90106b
MDL-39496 Admin: Reduce excessive is_array tests in admin_category

admin_category::category_cache is a protected value which is only ever
treated as an array. We shouldn't need to test that it's an array each time
we use it.
lib/adminlib.php