Changeset 2775

Show
Ignore:
Timestamp:
03/09/10 16:50:42 (2 years ago)
Author:
areski
Message:

fix on archive

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/Public/A2B_data_archiving.php

    r2421 r2775  
    201201if(isset($archive) && !empty($archive)){ 
    202202        $condition = $HD_Form -> FG_TABLE_CLAUSE; 
    203 if (strpos($condition,'WHERE') <= 0){ 
     203    if (strlen($condition) && strpos($condition,'WHERE') === false){ 
    204204        $condition = " WHERE $condition"; 
    205 
    206 $rec = archive_data($condition, "card"); 
    207 if($rec > 0) 
    208        $archive_message = "The data has been successfully archived"; 
     205   
     206    $rec = archive_data($condition, "card"); 
     207    if($rec > 0) 
     208        $archive_message = "The data has been successfully archived"; 
    209209} 
    210210 
     
    225225 
    226226<?php 
    227 // #### CREATE SEARCH FORM 
    228         $HD_Form -> create_search_form(); 
     227$HD_Form -> create_search_form(); 
    229228?> 
    230229 
     
    236235?> 
    237236<center> 
    238 <form name="frm_archive" id="frm_archive" method="post" action="A2B_call_archiving.php"> 
     237<FORM name="frm_archive" id="frm_archive" method="post" action="A2B_call_archiving.php"> 
    239238<table class="bar-status" width="50%" border="0" cellspacing="1" cellpadding="2" align="center"> 
    240239                        <tbody>