]> wagnertech.de Git - timetracker.git/blobdiff - expenses.php
Siwtched to using isPost() function
[timetracker.git] / expenses.php
index 15ccad5e9a98d51696e9d2b2d4c03ffc0d37650f..f9112e3102daea120ff561bab1aed6fbb70d6ebe 100644 (file)
@@ -142,7 +142,7 @@ if ($lock_interval > 0) {
 }
 
 // Submit.
-if ($request->getMethod() == 'POST') {
+if ($request->isPost()) {
   if ($request->getParameter('btn_submit')) {
     // Validate user input.
     if (in_array('cl', explode(',', $user->plugins)) && in_array('cm', explode(',', $user->plugins)) && !$cl_client)