/** * Appends a condition to the WHERE key of the SQL array to not fetch disallowed BBCodes from the database * * @param $sql_ary array * @return array */ public function remove_disallowed_bbcodes($sql_ary) { // Add disallowed BBCodes to the template only if we're rendering for mChat if ($this->is_mchat_rendered) { $sql_ary['WHERE'] = $this->functions_mchat->mchat_sql_append_forbidden_bbcodes($sql_ary['WHERE']); } return $sql_ary; }