Browse Source

Add invite system error logging

causefx 8 years ago
parent
commit
077b9cbfa0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      api/plugins/invites.php

+ 3 - 0
api/plugins/invites.php

@@ -121,6 +121,7 @@ function inviteCodes($array) {
 						}
 						return true;
 					} catch (Dibi\Exception $e) {
+						writeLog('error', 'Invite Management Function  -  Error ['.$e.']', 'SYSTEM');
 						return false;
 					}
 					break;
@@ -133,6 +134,7 @@ function inviteCodes($array) {
 						$invites = $connect->fetchAll('SELECT * FROM invites');
 						return $invites;
 					} catch (Dibi\Exception $e) {
+						writeLog('error', 'Invite Management Function  -  Error ['.$e.']', 'SYSTEM');
 						return false;
 					}
 					break;
@@ -145,6 +147,7 @@ function inviteCodes($array) {
 						$connect->query('DELETE FROM invites WHERE id = ?', $id);
 						return true;
 					} catch (Dibi\Exception $e) {
+						writeLog('error', 'Invite Management Function  -  Error ['.$e.']', 'SYSTEM');
 						return false;
 					}
 					break;