Iptables.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 08:19:24 +0000 (16:19 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 08:19:24 +0000 (16:19 +0800)
Iptables.php

index 082bb23..7a43230 100644 (file)
@@ -206,11 +206,11 @@ class Pman_Admin_Iptables extends Pman {
             }
             
             // got input rules now..
-            if (!empty($row['comment'])) {
+            if (!empty($row['comments'])) {
                 
-                $row['comment'] = preg_replace('#^/\*#', '', trim($row['comment']) );
-                $row['comment'] = preg_replace('#\*/$#', '', $row['comment'] );
-                foreach((array)json_decode($row['comment']) as $k=>$v) {
+                $row['comments'] = preg_replace('#^/\*#', '', trim($row['comments']) );
+                $row['comments'] = preg_replace('#\*/$#', '', $row['comments'] );
+                foreach((array)json_decode($row['comments']) as $k=>$v) {
                     $row[$k] = $v;
                 }
             }