Ignore:
Timestamp:
2006/09/19 13:57:46 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/design/main_edit.php

    r5144 r5145  
    107107        $ret = $objDBConn->getAll($sql,array($page_id_old)); 
    108108         
    109         sfprintr($ret); 
    110          
    111         // blocposition ¤òÊ£À½ 
    112         $sql = " insert into dtb_blocposition ("; 
    113         $sql .= "     page_id,"; 
    114         $sql .= "     target_id,"; 
    115         $sql .= "     bloc_id,"; 
    116         $sql .= "     bloc_row"; 
    117         $sql .= "     )values(?, ?, ?, ?)"; 
    118         $ret = $objDBConn->query($sql,$ret[0]); 
     109        if (count($ret) > 0) { 
     110            // blocposition ¤òÊ£À½ 
     111            $sql = " insert into dtb_blocposition ("; 
     112            $sql .= "     page_id,"; 
     113            $sql .= "     target_id,"; 
     114            $sql .= "     bloc_id,"; 
     115            $sql .= "     bloc_row"; 
     116            $sql .= "     )values(?, ?, ?, ?)"; 
     117            $ret = $objDBConn->query($sql,$ret[0]); 
     118        } 
     119 
    119120    } 
    120121     
Note: See TracChangeset for help on using the changeset viewer.