From: konrad Date: Mon, 29 Nov 2010 21:01:17 +0000 (+0000) Subject: fix toTable* to diff null from 0 X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=4421f1594157fedf1afc5cf898353875794f969d;p=web%2Fkonrad%2Fpack.git fix toTable* to diff null from 0 git-svn-id: https://silmor.de/svn/softmagic/pack/trunk@643 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/woc/php/phpclass.cpp b/woc/php/phpclass.cpp index cc77fd4..ecc05bf 100644 --- a/woc/php/phpclass.cpp +++ b/woc/php/phpclass.cpp @@ -487,7 +487,7 @@ QString WocPHPClass::classMappings(const WocClass&cls) if(meth!="")continue; //check that column exists if(tab.hasColumn(map[mapk[j]])){ - code+="\tif($this->prop_"+mapk[j]+"!==null && $table->"+map[mapk[j]]+"!=$this->prop_"+mapk[j]+")\n"; + code+="\tif($this->prop_"+mapk[j]+"!==null && $table->"+map[mapk[j]]+"!==$this->prop_"+mapk[j]+")\n"; code+="\t\t$table->"+map[mapk[j]]+"=$this->prop_"+mapk[j]+";\n"; } }