Cleanup comments. Small bugfixes. Second run
[fa-stable.git] / includes / ui / simple_crud_class.inc
index 46b9fbfc3e040d5ac152dcee8c1f88013cf6a0c0..05d9280135e9e57a67509edc11475da0a0d5b5bc 100644 (file)
@@ -106,8 +106,6 @@ class simple_crud {
        {
                global $Ajax;
 
-               $sel_name = $this->name.'_id';
-
                // list controls lookup
                foreach (array_keys($this->pre_handlers) as $m) {
                        if (isset($_POST[$this->name.$m])) {
@@ -211,9 +209,9 @@ class simple_crud {
                if ($async === 'both') {
                        $async = 'default'; $cancel = 'cancel';
                } 
-               else if ($async === 'default')
+               elseif ($async === 'default')
                        $cancel = true;
-               else if ($async === 'cancel')
+               elseif ($async === 'cancel')
                        $async = true;
                echo "<center>";
 
@@ -376,4 +374,3 @@ class simple_crud {
        }
 };
 
-?>
\ No newline at end of file