Changeset 32436 for extensions/posted_date_changer/main.inc.php
- Timestamp:
- Jan 25, 2021, 10:19:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/posted_date_changer/main.inc.php
r30028 r32436 44 44 if(!empty($_POST['date_available'])){ 45 45 $date_available = $_POST['date_available']; 46 }else{ 47 $date_available=null; 48 } 49 50 $datas = array(); 51 foreach ($collection as $image_id) 52 { 53 array_push( 46 $datas = array(); 47 foreach ($collection as $image_id) 48 { 49 array_push( 54 50 $datas, 55 51 array( … … 58 54 ) 59 55 ); 60 } 61 56 } 62 57 mass_updates( 63 58 IMAGES_TABLE, … … 65 60 $datas 66 61 ); 62 }else{ 63 load_language('plugin.lang', dirname(__FILE__).'/');; 64 $_SESSION['page_errors'] = array(l10n('Date can\'t be empty')); 65 } 67 66 } 68 67 }
Note: See TracChangeset
for help on using the changeset viewer.