Noalyss_SQL Fix bug in set and get fct

Signed-off-by: Dany De Bontridder <dany@alchimerys.be>
This commit is contained in:
Rachel 2017-01-05 15:07:19 +01:00 committed by Dany De Bontridder
parent c320ed75a4
commit 4d9d1f3564

View file

@ -110,7 +110,6 @@ abstract class Noalyss_SQL
public function get($p_string)
{
if (array_key_exists($p_string, $this->type)) {
$idx=$this->type[$p_string];
return $this->$idx;
}
else
@ -124,7 +123,6 @@ abstract class Noalyss_SQL
public function set($p_string, $p_value)
{
if (array_key_exists($p_string, $this->type)) {
$idx=$this->type[$p_string];
$this->$idx=$p_value;
} else
throw new Exception(__FILE__.":".__LINE__.$p_string.'Erreur attribut inexistant '.$p_string);