Files
dolibarr/htdocs
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
..
2023-01-23 20:35:17 +01:00
2023-01-06 20:12:58 +01:00
2023-01-30 12:05:52 +01:00
2023-01-27 14:40:30 +01:00
2023-01-30 12:07:59 +01:00
2023-01-18 23:58:26 +01:00
2023-01-06 20:12:58 +01:00
2023-01-24 14:32:20 +01:00
2023-01-21 13:08:47 +01:00
2023-01-08 15:33:12 +01:00
2023-01-18 22:27:52 +01:00
2023-01-06 20:12:58 +01:00
2023-01-25 16:06:41 +01:00
2023-01-24 14:32:20 +01:00
Doc
2023-01-24 23:26:17 +01:00
2023-01-18 23:58:26 +01:00
2023-01-08 19:34:32 +01:00
2023-01-19 17:13:25 +01:00
2023-01-18 23:58:26 +01:00
2023-01-17 23:56:22 +01:00
2023-01-06 20:12:58 +01:00
2023-01-07 17:00:39 +01:00