Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/js/callbacks/checkrelated.php
blob: 3ce3ee8cad770556c797b67a988e6908a65977bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/*
    Checks if a related tasks belongs to a different project.
*/

define('IN_FS', true);

require_once('../../header.php');

$sql = $db->query('SELECT  project_id
                         FROM  {tasks}
                        WHERE  task_id = ?',
                  array(Get::val('related_task')));

$relatedproject = $db->fetchOne($sql);

if (Get::val('project') == $relatedproject || !$relatedproject) {
    echo 'ok';
}
?>