Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: iberan on 15 July 2023, 10:45:02

Title: unexpected back slash
Post by: iberan on 15 July 2023, 10:45:02
Hi,

I think there is an unexpected back slash:

/administrator/components/com_abook/views/books/viewhtml.php #40

if (!\count($this->items) && $this->isEmptyState = $this->get('IsEmptyState'))
Title: Re: unexpected back slash
Post by: federica on 17 July 2023, 10:05:08
Hi iberan,
which version of Abook are you using?
I think you are referring to this file administrator/components/com_abook/views/book/view.html.php but the line #40 is totally different.
Title: Re: unexpected back slash
Post by: iberan on 17 July 2023, 15:55:43
So sorry, Federica, this back slash appears in  administrator/components/com_abook/views/books/view.html.php #40
Title: Re: unexpected back slash
Post by: iberan on 17 July 2023, 15:59:14
... and the version is Abook 4.01
Title: Re: unexpected back slash
Post by: federica on 18 July 2023, 20:52:16
I found the line you refers and the backslash.
Which PHP error occurs? My installation does not display any errors.
Title: Re: unexpected back slash
Post by: iberan on 20 July 2023, 08:02:56
No any PHP error occurs, I can't recognize this character only.
Title: Re: unexpected back slash
Post by: federica on 20 July 2023, 10:23:17
It is an escape character useful to call a function.
Joomla core also do that
eg. components/com_contact/helpers/route.php line 16
you can see:
\defined('_JEXEC') or die;)
Title: Re: unexpected back slash
Post by: iberan on 20 July 2023, 11:15:56
Thank you so much!