Ignore:
Timestamp:
Feb 9, 2005, 10:46:28 PM (19 years ago)
Author:
plg
Message:
  • bug fixed : even with a wrong date given, tries to update (should not)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r675 r732  
    4141  }
    4242}
    43 if (isset($_POST['submit']))
     43if (isset($_POST['submit']) and count($errors) == 0)
    4444{
    4545  $query = 'UPDATE '.IMAGES_TABLE.' SET name = ';
     
    6262
    6363  $query.= ', date_creation = ';
    64   if (check_date_format($_POST['date_creation']))
     64  if (!empty($_POST['date_creation']))
    6565    $query.= "'".date_convert($_POST['date_creation'])."'";
    6666  else if ($_POST['date_creation'] == '')
Note: See TracChangeset for help on using the changeset viewer.