Marius Cramer
2014-10-31 474f4595c7aa07c678dceb90d06dfecf51007dd0
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);