Zeile 2923 | Zeile 2923 |
---|
* Toggle thread visibility (deleted/restored) * * @param array Thread IDs
|
* Toggle thread visibility (deleted/restored) * * @param array Thread IDs
|
* @param int Forum ID
| |
* @return boolean true */
|
* @return boolean true */
|
function toggle_thread_softdelete($tids, $fid)
| function toggle_thread_softdelete($tids)
|
{ global $db;
// Make sure we only have valid values $tids = array_map('intval', $tids);
|
{ global $db;
// Make sure we only have valid values $tids = array_map('intval', $tids);
|
$fid = (int)$fid;
| |
$tid_list = implode(',', $tids); $query = $db->simple_select("threads", 'tid, visible', "tid IN ($tid_list)");
| $tid_list = implode(',', $tids); $query = $db->simple_select("threads", 'tid, visible', "tid IN ($tid_list)");
|
Zeile 2949 | Zeile 2947 |
---|
} if(is_array($delete)) {
|
} if(is_array($delete)) {
|
$this->soft_delete_threads($delete, $fid);
| $this->soft_delete_threads($delete);
|
} if(is_array($restore)) {
|
} if(is_array($restore)) {
|
$this->restore_threads($restore, $fid);
| $this->restore_threads($restore);
|
} return true; }
| } return true; }
|