Files
dolibarr/htdocs/core/lib
Rept0id 3cc415af47 Updated function dol_eval, added error handling
- There were cases that dol_eval() would break the whole system.

-That was happening in case of using a new version plugin on an old version dolibarr. New plugin validates through isModActive() instead of $conf->moduleName->enabled. Even if you were deactivating the plugin, or totally delete it, the records were still on database for menu, so there were no obvious solution. This update adds a backwards compatibility, makes doli more stable and counterparts the use of eval, making it more safe.

- Use of eval is not bad, as well there are techniques in any project that are project-related useful and smart. For example, Linux kernel uses GOTO. But in such cases, there needs to be a safety net.

-I found out this after a lot of trouble, I hope this small fix will save other developers.

👍
2023-02-04 15:17:51 +01:00
..
2022-12-09 17:02:34 +01:00
2022-12-12 17:13:09 +01:00
2022-09-22 14:42:58 +02:00
2022-09-22 14:42:58 +02:00
2023-01-03 13:49:05 +01:00
2022-12-08 19:34:16 +01:00
2022-09-24 14:43:29 +02:00
2022-09-22 14:42:58 +02:00
2022-11-14 01:19:15 +01:00
2022-12-16 16:59:23 +01:00
2022-10-20 12:30:10 +02:00
2022-11-30 18:52:11 +01:00
2022-12-14 15:53:14 +02:00
2022-11-30 18:20:29 +01:00
2022-09-22 14:06:50 +02:00
2023-02-04 14:09:28 +01:00
2022-09-22 14:06:50 +02:00
2022-11-27 00:44:05 +01:00
2022-09-25 21:58:40 +02:00
2022-10-12 15:29:30 +02:00
2023-01-30 02:56:29 +01:00
2022-11-25 23:59:06 +01:00
2022-11-30 22:07:25 +01:00
2023-02-03 15:56:50 +01:00
2022-09-25 23:06:42 +02:00
2022-11-30 22:12:35 +01:00
2022-09-22 14:06:50 +02:00
2022-09-22 14:06:50 +02:00
2023-02-04 14:07:07 +01:00
2022-09-22 14:42:58 +02:00
2023-01-14 11:56:41 +01:00
2022-10-25 10:53:19 +02:00