2016-05-20, 01:26 PM
(This post was last modified: 2016-05-20, 01:28 PM by thelovelyone.)
(2016-05-20, 12:25 PM)Devilshakerz Wrote:$syncConditions = $mybb->settings['dvz_sb_sync'] ? "OR (s.modified >= " . (time() - $mybb->settings['dvz_sb_interval']) . " AND s.id BETWEEN " . abs($mybb->get_input('first', MyBB::INPUT_INT)) . " AND " . abs($mybb->get_input('last', MyBB::INPUT_INT)) . ")" : null ; $data = self::get_multiple("WHERE (s.id > " . abs($mybb->get_input('last', MyBB::INPUT_INT)) . " AND s.text IS NOT NULL) " . $syncConditions . " ORDER BY s.id DESC LIMIT " . self::async_limit());
Alright, nice to hear. Also patched it, thanks.