Commit fba1d4a8 authored by metzlerd's avatar metzlerd
Browse files

Fixed problems with passing data in drupal.

parent c134782e
......@@ -52,7 +52,7 @@ class FrxControls {
if ($field) {
$vars = @unserialize($field);
}
return t($value, $vars);
return t($value);
}
//Date format methods
......
......@@ -41,7 +41,7 @@ class FrxDrupal extends FrxDataProvider {
if ($clause) {
$sql = 'SELECT * FROM (' . trim($sql, ' ;') . ') forena_table ' . $clause;
}
$sql = $this->te->replace($sql, $params);
$sql = $this->te->replace($sql);
$rs = db_query($sql);
$xml = new SimpleXMLElement('<table/>');
......@@ -71,7 +71,7 @@ class FrxDrupal extends FrxDataProvider {
public function format($value, $key, $data) {
$db = Database::getConnection('default');
if ($db) {
if ($value=='') $value = 'NULL'; else $value = $db -> quote($value);
if ($value=='') $value = 'NULL'; else $value = $db -> quote($value);
}
return $value;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment