Timeline for implode(): Argument #1 ($array) must be of type array, string given
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 28 at 13:27 | comment | added | Hdcms | Hello Thank you but in the meantime, another developer suggested to me: if (!empty($this->item->jcfields[58]->value)): ; What would be more durable php 9.x...? | |
May 21 at 22:51 | comment | added | mickmackusa |
This answer doesn't make sense. The error states that the data is a string . Therefore we can deduce that it is both "declared" and "not null".
|
|
May 21 at 22:43 | history | edited | mickmackusa | CC BY-SA 4.0 |
Cleaned answer
|
Apr 17 at 17:02 | comment | added | Seb | @Hdcms I don't use Joomla 4 (neither J5) . Yes, implode first arg is an array. As my first language was Pascal, I use the same algorithm for that. I don't understand your sentence " Quelle serait cette meilleure variable ? " => QUELLE VARIABLE ?? @++ | |
Apr 17 at 7:03 | comment | added | Hdcms | Hello I'm doubling in French because it would actually be easier for me :-) Ok I'm going to change the test but 2 people on the French forum tell me that the implode must test an array. What would be this best variable? As this is a code that someone helped me to make for joomla 3/php 7 Can I show it here or on the fr forum to check that the code (~140 lines) is compatible with Joomla 5? | |
Apr 16 at 15:42 | history | answered | Seb | CC BY-SA 4.0 |