Improved cleanup code.
[timetracker.git] / WEB-INF / lib / ttOrgHelper.class.php
index a4be2e9..9bf1ad7 100644 (file)
@@ -135,6 +135,8 @@ class ttOrgHelper {
     if (is_a($affected, 'PEAR_Error'))
       return false;
 
+    if ($affected == 0) return true; // Do not call file storage utility.
+
     // Try to make a call to file storage facility.
     if (!defined('FILE_STORAGE_URI')) return true; // Nothing to do.