Sources/ScheduledTasks.php 1 location
|
@@ 256-261 (lines=6) @@
|
| 253 |
|
array( |
| 254 |
|
) |
| 255 |
|
); |
| 256 |
|
while ($row = $smcFunc['db_fetch_assoc']($request)) |
| 257 |
|
{ |
| 258 |
|
$mods[$row['id_member']][$row['id_board']] = true; |
| 259 |
|
// Make sure they get included in the big loop. |
| 260 |
|
$members[] = $row['id_member']; |
| 261 |
|
} |
| 262 |
|
$smcFunc['db_free_result']($request); |
| 263 |
|
} |
| 264 |
|
|
Sources/Subs-Notify.php 1 location
|
@@ 51-54 (lines=4) @@
|
| 48 |
|
'prefs' => $prefs, |
| 49 |
|
) |
| 50 |
|
); |
| 51 |
|
while ($row = $smcFunc['db_fetch_assoc']($request)) |
| 52 |
|
{ |
| 53 |
|
$result[$row['id_member']][$row['alert_pref']] = $row['alert_value']; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
// We may want to keep the default values separate from a given user's. Or we might not. |
| 57 |
|
if ($process_default && isset($result[0])) |
Sources/tasks/ApprovePost-Notify.php 1 location
|
@@ 50-54 (lines=5) @@
|
| 47 |
|
); |
| 48 |
|
|
| 49 |
|
$watched = array(); |
| 50 |
|
while ($row = $smcFunc['db_fetch_assoc']($request)) |
| 51 |
|
{ |
| 52 |
|
$members[] = $row['id_member']; |
| 53 |
|
$watched[$row['id_member']] = $row; |
| 54 |
|
} |
| 55 |
|
$smcFunc['db_free_result']($request); |
| 56 |
|
|
| 57 |
|
if (empty($members)) |
Sources/tasks/ApproveReply-Notify.php 1 location
|
@@ 46-50 (lines=5) @@
|
| 43 |
|
); |
| 44 |
|
|
| 45 |
|
$watched = array(); |
| 46 |
|
while ($row = $smcFunc['db_fetch_assoc']($request)) |
| 47 |
|
{ |
| 48 |
|
$members[] = $row['id_member']; |
| 49 |
|
$watched[$row['id_member']] = $row; |
| 50 |
|
} |
| 51 |
|
$smcFunc['db_free_result']($request); |
| 52 |
|
|
| 53 |
|
require_once($sourcedir . '/Subs-Notify.php'); |
Sources/tasks/CreatePost-Notify.php 1 location
|
@@ 327-333 (lines=7) @@
|
| 324 |
|
); |
| 325 |
|
|
| 326 |
|
$members = array(); |
| 327 |
|
while ($row = $smcFunc['db_fetch_assoc']($request)) |
| 328 |
|
{ |
| 329 |
|
if ($posterOptions['id'] == $row['id_member']) |
| 330 |
|
continue; |
| 331 |
|
|
| 332 |
|
$members[$row['id_member']] = $row; |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
return $members; |
| 336 |
|
} |