2012-07-25, 08:15 PM
One more thing.
In the plugin, the following code;
It may be rewritten like this;
This will not throw sql error incase if the column already present in the usergroups table.
In the plugin, the following code;
$db->add_column("usergroups", "timebtwnthreads", "int(10) NOT NULL");
It may be rewritten like this;
if(!$db->field_exists("timebtwnthreads", "usergroups"))
{
$db->add_column("usergroups", "timebtwnthreads", "int(10) NOT NULL");
}
This will not throw sql error incase if the column already present in the usergroups table.
