]> git.mxchange.org Git - friendica.git/commitdiff
/src is now free from old style delete queries
authorMichael <heluecht@pirati.ca>
Wed, 22 Nov 2017 09:14:42 +0000 (09:14 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 22 Nov 2017 09:14:42 +0000 (09:14 +0000)
src/App.php

index 1bb35e1dc2d1c773a998c3f9bb85f811f1877e6a..ab64d7a3f456fe2c41407ee4d39203431106eff2 100644 (file)
@@ -722,7 +722,7 @@ class App {
                if (DBM::is_result($r)) {
                        foreach ($r AS $process) {
                                if (!posix_kill($process['pid'], 0)) {
-                                       q('DELETE FROM `process` WHERE `pid` = %d', intval($process['pid']));
+                                       dba::delete('process', array('pid' => $process['pid']));
                                }
                        }
                }
@@ -733,7 +733,7 @@ class App {
         * @brief Remove the active process from the "process" table
         */
        function end_process() {
-               q('DELETE FROM `process` WHERE `pid` = %d', intval(getmypid()));
+               dba::delete('process', array('pid' => getmypid()));
        }
 
        function get_useragent() {