|
From: Benjamin C. <bc...@us...> - 2003-06-11 12:44:44
|
Update of /cvsroot/phpbt/phpbt
In directory sc8-pr-cvs1:/tmp/cvs-serv30727
Modified Files:
bug.php
Log Message:
Fixes the bug of trying to insert a null value into the bug history when assigning an unassigned bug
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -r1.130 -r1.131
--- bug.php 1 Jun 2003 18:18:46 -0000 1.130
+++ bug.php 11 Jun 2003 12:44:38 -0000 1.131
@@ -231,6 +231,9 @@
$assignedtostat = '!';
$oldassignedto = $db->getOne('select email from '.
TBL_AUTH_USER.' u where u.user_id = '.$buginfo['assigned_to']);
+ if (is_null($oldassignedto)) {
+ $oldassignedto = '';
+ }
$db->query('insert into '.TBL_BUG_HISTORY.
' (bug_id, changed_field, old_value, new_value, created_by, created_date)'.
" values (". join(', ', array($buginfo['bug_id'],
|