Esempio n. 1
0
 function updateListFromList($listId, $status, $new)
 {
     $listUpdated = lists::getOneList($listId);
     $listUpdated->published = $status;
     if (!$status and ($listUpdated->list_type == 2 or $listUpdated->list_type == 3)) {
         $published = 0;
         xmailing::updateMailingFromList($listId, $published, $listUpdated->html, '');
     }
     if ($status) {
         $d['published'] = 1;
     } else {
         $d['published'] = 0;
     }
     $d['list_id'] = $listId;
     return lists::updatePublish($d);
 }