Marius Cramer
2014-12-19 77cc4a99b15f4639b56c29a1207dc04b459c5d54
interface/lib/classes/remoting.inc.php
@@ -180,8 +180,11 @@
      $session_id = $app->db->quote($session_id);
      $sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'";
      $app->db->query($sql);
      return $app->db->affectedRows() == 1;
      if($app->db->query($sql) != false) {
         return true;
      } else {
         return false;
      }
   }
   //** protected functions -----------------------------------------------------------------------------------
@@ -337,6 +340,10 @@
      //* Load the form definition
      $app->remoting_lib->loadFormDef($formdef_file);
      //* get old record and merge with params, so only new values have to be set in $params
      $old_rec = $app->remoting_lib->getDataRecord($primary_id);
      $params = $app->functions->array_merge($old_rec,$params);
      //* Get the SQL query
      $sql = $app->remoting_lib->getSQL($params, 'UPDATE', $primary_id);