Fix gallery link
authorDuck (Jakob Munih) <duck@obala.net>
Tue, 3 Feb 2009 16:01:43 +0000 (17:01 +0100)
committerDuck (Jakob Munih) <duck@obala.net>
Tue, 3 Feb 2009 16:01:43 +0000 (17:01 +0100)
news/add.php

index f095f5f..161eb7e 100644 (file)
@@ -351,7 +351,7 @@ if ($form->validate()) {
                       $info['category2'],
                       $info['chars'],
                       sizeof(@$info['attachments']),
-                      isset($galleries) ? $info['gallery'] : 0,
+                      empty($info['gallery']) ? 0 : $info['gallery'],
                       $info['selling'],
                       $info['threads'],
                       empty($info['form_id']) ? 0 : (int)$info['form_id'],
@@ -378,7 +378,7 @@ if ($form->validate()) {
                       $info['category2'],
                       $info['chars'],
                       sizeof(@$info['attachments']),
-                      isset($galleries) ? $info['gallery'] : 0,
+                      empty($info['gallery']) ? 0 : $info['gallery'],
                       $info['selling'],
                       $info['threads'],
                       empty($info['form_id']) ? 0 : (int)$info['form_id'],