From: <jon...@us...> - 2009-07-29 15:21:16
|
Revision: 20408 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=20408&view=rev Author: jonnybradley Date: 2009-07-29 15:21:09 +0000 (Wed, 29 Jul 2009) Log Message: ----------- [FIX] Typos Modified Paths: -------------- trunk/lib/webmail/contactlib.php Modified: trunk/lib/webmail/contactlib.php =================================================================== --- trunk/lib/webmail/contactlib.php 2009-07-29 15:20:19 UTC (rev 20407) +++ trunk/lib/webmail/contactlib.php 2009-07-29 15:21:09 UTC (rev 20408) @@ -248,7 +248,7 @@ 'WHERE f.`flagsPublic`=\'y\' AND f.`fieldname`=? AND x.`contactId`=?'; $res = $this->query($query, array($name, (int) $contactId)); } - if (!$res || !$res->numRows()) { // temporary global fields - need to agg groupishness one day..? + if (!$res || !$res->numRows()) { // temporary global fields - need to add groupishness one day..? $res = $this->query('SELECT * FROM `tiki_webmail_contacts_fields` WHERE `user`=? AND `fieldname`=?', array($user, $name)); } if (!$res || !$res->numRows()) { @@ -263,7 +263,7 @@ if ($public) { // check for previous public one $c = $this->getOne('SELECT COUNT(*) FROM `tiki_webmail_contacts_fields` WHERE `fieldname`=? AND `flagsPublic`=\'y\'', array($name)); } - if (!c) { + if (!$c) { $pubvar = $public ? 'y' : 'n'; $this->query("INSERT INTO `tiki_webmail_contacts_fields` (`user`, `fieldname`, `flagsPublic`) VALUES (?,?,?)", array($user, $name, $pubvar)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |