action.blog.php 1 location
|
@@ 121-126 (lines=6) @@
|
118 |
|
/* edit a single blog */ |
119 |
|
case 'edit': |
120 |
|
default: |
121 |
|
if (!empty($_POST['fetch'])) { |
122 |
|
$blog_obj =& $blog_handler->fetch($_POST['blog_feed']); |
123 |
|
$blog_obj->setVar('blog_id', $blog_id); |
124 |
|
} else { |
125 |
|
$blog_obj =& $blog_handler->get($blog_id); |
126 |
|
} |
127 |
|
$categories = isset($_POST['categories']) ? $_POST['categories'] : array(); |
128 |
|
if (in_array('-1', $categories)) { |
129 |
|
$categories = array(); |
admin/admin.blog.php 1 location
|
@@ 200-205 (lines=6) @@
|
197 |
|
|
198 |
|
/* edit a single blog */ |
199 |
|
case 'edit': |
200 |
|
if (!empty($_POST['fetch'])) { |
201 |
|
$blog_obj =& $blog_handler->fetch($_POST['blog_feed']); |
202 |
|
$blog_obj->setVar('blog_id', $blog_id); |
203 |
|
} else { |
204 |
|
$blog_obj =& $blog_handler->get($blog_id); |
205 |
|
} |
206 |
|
$categories = @$_POST['categories']; |
207 |
|
if (empty($categories) && $blog_id > 0) { |
208 |
|
$crit = new Criteria('bc.blog_id', $blog_id); |