[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] projects/inc/class.soprojects.inc.php, 1.100
From: |
nomail |
Subject: |
[Phpgroupware-cvs] projects/inc/class.soprojects.inc.php, 1.100 |
Date: |
Thu, 3 Jun 2004 15:38:59 +0200 |
Update of /projects/inc
Modified Files:
Branch:
class.soprojects.inc.php
date: 2004/06/03 13:38:59; author: ceb; state: Exp; lines: +15 -18
Log Message:
update
=====================================================================
Index: projects/inc/class.soprojects.inc.php
diff -u projects/inc/class.soprojects.inc.php:1.99
projects/inc/class.soprojects.inc.php:1.100
--- projects/inc/class.soprojects.inc.php:1.99 Wed Jun 2 16:27:26 2004
+++ projects/inc/class.soprojects.inc.php Thu Jun 3 13:38:59 2004
@@ -760,26 +760,23 @@
function exists($action, $check = 'number', $num = '',
$project_id = '')
{
$project_id = intval($project_id);
+ $p_table = ' phpgw_p_projects';
- switch ($action)
+ switch($check)
{
- default: $p_table = ' phpgw_p_projects';
$column = ' p_number'; break;
- }
-
- if ($check == 'number')
- {
- if ($project_id > 0)
- {
- $editexists = ' and project_id !=' .
$project_id;
- }
-
- $this->db->query("select count(*) from $p_table
where $column='$num'" . $editexists,__LINE__,__FILE__);
- }
-
- if ($check == 'par')
- {
- $this->db->query('select count(*) from
phpgw_p_projects where parent=' . $project_id,__LINE__,__FILE__);
+ case 'number':
+ $column = ' p_number';
+ if ($project_id > 0)
+ {
+ $editexists = ' and project_id
!=' . $project_id;
+ }
+ break;
+ case 'par':
+ $column = ' parent';
+ $num = $project_id;
+ break;
}
+ $this->db->query("select count(*) from $p_table where
$column='$num'" . $editexists,__LINE__,__FILE__);
$this->db->next_record();
if ($this->db->f(0))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] projects/inc/class.soprojects.inc.php, 1.100,
nomail <=