| @@ 435-439 (lines=5) @@ | ||
| 432 | 'selected_message' => (int) $messageID, |
|
| 433 | ) |
|
| 434 | ); |
|
| 435 | if ($smcFunc['db_num_rows']($result) > 0) |
|
| 436 | list ($memberID) = $smcFunc['db_fetch_row']($result); |
|
| 437 | // The message doesn't even exist. |
|
| 438 | else |
|
| 439 | $memberID = 0; |
|
| 440 | $smcFunc['db_free_result']($result); |
|
| 441 | ||
| 442 | return (int) $memberID; |
|
| @@ 1803-1804 (lines=2) @@ | ||
| 1800 | 'cat_name' => $txt['salvaged_category_name'], |
|
| 1801 | ) |
|
| 1802 | ); |
|
| 1803 | if ($smcFunc['db_num_rows']($result) != 0) |
|
| 1804 | list ($salvageCatID) = $smcFunc['db_fetch_row']($result); |
|
| 1805 | $smcFunc['db_free_result']($result); |
|
| 1806 | ||
| 1807 | if (empty($salvageCatID)) |
|
| @@ 1836-1837 (lines=2) @@ | ||
| 1833 | 'board_name' => $txt['salvaged_board_name'], |
|
| 1834 | ) |
|
| 1835 | ); |
|
| 1836 | if ($smcFunc['db_num_rows']($result) != 0) |
|
| 1837 | list ($salvageBoardID) = $smcFunc['db_fetch_row']($result); |
|
| 1838 | $smcFunc['db_free_result']($result); |
|
| 1839 | ||
| 1840 | if (empty($salvageBoardID)) |
|
| @@ 1571-1572 (lines=2) @@ | ||
| 1568 | 'db_error_skip' => true, |
|
| 1569 | ) |
|
| 1570 | ); |
|
| 1571 | if ($smcFunc['db_num_rows']($result) != 0) |
|
| 1572 | list ($db_sessions) = $smcFunc['db_fetch_row']($result); |
|
| 1573 | $smcFunc['db_free_result']($result); |
|
| 1574 | ||
| 1575 | if (empty($db_sessions)) |
|