[phpwebapp-commits] CVS: web_app/database class.EditableRS.php,1.7,1.8
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-05-19 09:19:18
|
Update of /cvsroot/phpwebapp/web_app/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22494/database Modified Files: class.EditableRS.php Log Message: don't add a column if it already exists Index: class.EditableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.EditableRS.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.EditableRS.php 29 Jan 2004 08:28:37 -0000 1.7 --- class.EditableRS.php 19 May 2004 09:19:09 -0000 1.8 *************** *** 226,229 **** --- 226,231 ---- function addCol($fld_name, $default_value =UNDEFINED) { + if (isset($this->content[0][$fld_name])) return; + for ($i=0; $i < $this->count; $i++) { |