2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/core/lib
Rept0id fb655a0b0a 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-02 16:50:50 +02:00
..
2022-12-09 17:02:34 +01:00
2022-09-22 14:42:58 +02:00
2022-09-22 14:42:58 +02:00
2023-01-03 17:09:08 +01:00
2022-12-08 19:34:16 +01:00
2022-12-31 13:23:09 +01:00
2022-09-24 14:43:29 +02:00
2023-01-09 12:30:56 +01:00
2022-09-22 14:42:58 +02: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
2023-01-06 20:12:58 +01:00
2023-01-08 19:28:38 +01:00
2022-11-30 18:20:29 +01:00
2022-09-22 14:06:50 +02:00
2022-09-07 20:21:01 +02: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
2022-11-25 23:59:06 +01:00
2022-11-30 22:07:25 +01:00
2022-12-23 14:02:23 +01: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
2022-09-22 14:42:58 +02:00
2023-01-14 11:56:41 +01:00
2022-10-25 10:53:19 +02:00