bug in setPluginInfo and postgresql
Posted: Fri Aug 26, 2005 6:52 am
The insert into the table _pluginlist tries to insert an empty string instead of an integer when there is no local file for the corresponding plugin.
(the field last_modified). It might be a difference between postgresql and mysql.
I have fixed it by doing the following. I added the following code:
(the field last_modified). It might be a difference between postgresql and mysql.
I have fixed it by doing the following. I added the following code:
Code: Select all
[dmg@ti include]$ diff plugin_api.inc.php plugin_api.inc.php~
470,476d469
<
< if (isset($pluginFile)) {
< $lastModified = 0;filemtime($pluginFile);
< } else {
< $lastModified = 0;
< }
<
492c485
< 'last_modified' => $lastModified
---
> 'last_modified' => filemtime($pluginFile)