From 58f4ecafc93efde5fbcc13c5c910e6f55b622fb0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 9 Oct 2013 15:40:17 -0700 Subject: [PATCH] Fix for gallery-slider category preference --- e107_plugins/gallery/admin_gallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/gallery/admin_gallery.php b/e107_plugins/gallery/admin_gallery.php index 1a16f74b3..aef7c4722 100644 --- a/e107_plugins/gallery/admin_gallery.php +++ b/e107_plugins/gallery/admin_gallery.php @@ -182,7 +182,7 @@ class gallery_cat_admin_ui extends e_admin_ui $cats = array(); foreach($categories as $k=>$var) { - list($tmp,$id) = explode("_",$k); + $id = preg_replace("/[^0-9]/", '', $k); $cats[$id] = $var['media_cat_title']; }