@@ -156,6 +156,11 @@ class Hook_commandr_fs_catalogues extends Resource_fs_base
*/
protectedfunction_get_folder_edit_date($row)
{
if(array_key_exists('id',$row)){
$query='SELECT MAX(date_and_time) FROM '.get_table_prefix().'actionlogs WHERE '.db_string_equal_to('param_a',strval($row['id'])).' AND ('.db_string_equal_to('the_type','ADD_CATALOGUE_CATEGORY').' OR '.db_string_equal_to('the_type','EDIT_CATALOGUE_CATEGORY').')';
$query='SELECT MAX(date_and_time) FROM '.get_table_prefix().'actionlogs WHERE '.db_string_equal_to('param_a',$row['c_name']).' AND ('.db_string_equal_to('the_type','ADD_CATALOGUE').' OR '.db_string_equal_to('the_type','EDIT_CATALOGUE').')';