Jump to content

Ошибка в блоге вкл.\выкл. записи с админки


Recommended Posts

Выводит ошибку в админке в блоге, когда выставляешь активность или не активность на записи и нажимаешь кнопку применить:

Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIMIT 0' at line 1 [uPDATE s_blog SET visible='1' WHERE id in() LIMIT 0] in /home/u801604994/public_html/api/Database.php on line 116



Подскажите, что это может быть и как исправить?

Версия Simpla 2.0.2

Link to post
Share on other sites

Спасибо, отличный баг.
В файле /simpla/BlogAdmin.php на строке 23 лишняя точка с запятой


if(is_array($ids));
switch($this->request->post('action'))

а должно быть так

if(is_array($ids))
switch($this->request->post('action'))

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...