public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
Clear content properties before saving new values.

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@3321 
3d254a34-79dc-0310-9e5f-be208747d8a0
dittmann (author)
Thu Aug 17 19:58:38 -0700 2006
commit  efed2a22b499d6ba4018a4a10bfe6f58f8d33cab
tree    a5d1201bc009c47f3aa551f65ef41c261aaec013
parent  9b37c3f62a4515885702fd5f90a3c729ff5fcebe
...
1604
1605
1606
1607
1608
1609
1610
1611
 
 
1612
1613
1614
1615
1616
1617
...
1604
1605
1606
 
1607
1608
1609
1610
1611
1612
1613
1614
 
1615
1616
1617
0
@@ -1604,14 +1604,14 @@ class ContentProperties
0
    global $gCms, $config, $sql_queries, $debug_errors;
0
    $db = &$gCms->GetDb();
0
 
0
- $delquery = "DELETE FROM ".cms_db_prefix()."content_props where content_id=? and prop_name=?";
0
    $insquery = "INSERT INTO ".cms_db_prefix()."content_props (content_id, type, prop_name, param1, param2, param3, content) VALUES (?,?,?,?,?,?,?)";
0
       
0
    $concat = '';
0
 
0
+ $delquery = "DELETE FROM ".cms_db_prefix()."content_props where content_id = '$content_id'";
0
+ $dbresult = $db->Execute($delquery);
0
    foreach ($this->mPropertyValues as $key=>$value)
0
    {
0
- $dbresult = $db->Execute($delquery, array($content_id,$key));
0
     $dbresult = $db->Execute($insquery, array(
0
      $content_id,
0
      $this->mPropertyTypes[$key],

Comments

    No one has commented yet.