JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
cke_wfpl_images: cleanup, auto-select first
[wfpl-cms.git] / admin_pages.php
index 4f5c4c8..0736879 100644 (file)
@@ -80,7 +80,7 @@ function admin_pages_main_delete($id) {
 
 function admin_pages_get_images() {
        $images = db_get_assocs('cms_images', 'image,name,caption,sizes', 'order by name, caption, image');
-       $id = 1;
+       $id = 0;
        foreach($images as &$image) {
                $image['id'] = '' . $id;
                $id += 1;