Bugfix
authorBrian Flowers <git-admn@bsflowers.net>
Tue, 27 Sep 2016 05:34:30 +0000 (01:34 -0400)
committerBrian Flowers <git-admn@bsflowers.net>
Tue, 27 Sep 2016 05:34:30 +0000 (01:34 -0400)
configure.php

index 9e1fa8e..2b9fe92 100755 (executable)
@@ -37,20 +37,14 @@ if( isset($_POST) )
     $stmt = $db->prepare($insert);
 
     if( $stmt )
-    {
-      $stmt->bindParam($params);
-      $stmt->execute();
-    }
+      $stmt->execute($params);
       
     $update = "UPDATE bdsmweb SET :setting = :value ".
               "WHERE host = :host AND attribute = :attribute;";
     $stmt = $db->prepare($update);
       
     if( $stmt )
-    {
-      $stmt->bindParam($params);
-      $stmt->execute();
-    }
+      $stmt->execute($params);
   }
 }
 ?>