Ignore:
Timestamp:
04/03/17 05:25:30 (8 years ago)
Author:
Daniela Dorner
Message:
adapted to change of column fValidFrom in DB
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/insert_po.php

    r11991 r18802  
    190190        $query0.=" WHERE fIndex=".$_GET["fIndex"];
    191191    if ($_GET["fUpdCase"]==6)
    192         $query0.=" AND fValidFrom='0000-00-00 00:00:00'";
     192        $query0.=" AND fValidFrom='1970-01-01 00:00:00'";
    193193    $query0.=";";
    194194
     
    204204        if ($_GET["fUpdCase"]==3 || $_GET["fUpdCase"]==4)
    205205            $query0.=" AND NOT fIndex=".$_GET["fIndex"];
    206         $query0.=" AND ((NOT ISNULL(fValue) AND NOT fValidFrom='0000-00-00 00:00:00') ";//normal entries, but not deleted ones
    207         $query0.=" OR (ISNULL(fValue) AND fValidFrom='0000-00-00 00:00:00')); ";//new entries
     206        $query0.=" AND ((NOT ISNULL(fValue) AND NOT fValidFrom='1970-01-01 00:00:00') ";//normal entries, but not deleted ones
     207        $query0.=" OR (ISNULL(fValue) AND fValidFrom='1970-01-01 00:00:00')); ";//new entries
    208208
    209209        //insert new counter to history
Note: See TracChangeset for help on using the changeset viewer.