: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (isset($feed->feed->mod)){
return LASettingsUtils::YepNope2ClassicStyle($feed->feed->mod, false);
private function removeOldRecords() {
$settings = $this->db->getGeneralSettings();
$this->db->removeOldRecords($settings->getCountOfPostsByFeed());
private function prepareText( $text ) {
$text = str_replace("\r\n", "<br>", $text);
$text = str_replace("\n", "<br>", $text);
return @$this->db->conn()->getMySQLi()->real_escape_string($text);
private function serializeErrors($errors){
foreach ( $errors as &$error ) {
if (isset($error['url'])){
$error['url'] = $this->prepareString4Serialize($error['url']);
if (isset($error['message'])){
$error['message'] = $this->prepareString4Serialize($error['message']);
return serialize($errors);
private function prepareString4Serialize( $str ) {
$str = str_replace('?n', '%3fn', $str);
$str = str_replace('?s', '%3fs', $str);
$str = str_replace('?i', '%3fi', $str);
$str = str_replace('?u', '%3fu', $str);
$str = str_replace('?a', '%3fa', $str);
$str = str_replace('?p', '%3fp', $str);