appdb/include maintainer.php

WineHQ wineowner at wine.codeweavers.com
Tue Jul 24 16:52:55 CDT 2007


ChangeSet ID:	31276
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/07/24 16:52:55

Modified files:
	include        : maintainer.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Add return value to maintainer::delete()

Patch: http://cvs.winehq.org/patch.py?id=31276

Old revision  New revision  Changes     Path
 1.48          1.49          +6 -1       appdb/include/maintainer.php

Index: appdb/include/maintainer.php
diff -u -p appdb/include/maintainer.php:1.48 appdb/include/maintainer.php:1.49
--- appdb/include/maintainer.php:1.48	24 Jul 2007 21:52:55 -0000
+++ appdb/include/maintainer.php	24 Jul 2007 21:52:55 -0000
@@ -330,7 +330,12 @@ class maintainer
     function delete()
     {
         $sQuery = "DELETE from appMaintainers where maintainerId = '?'";
-        query_parameters($sQuery, $this->iMaintainerId);
+        $hResult = query_parameters($sQuery, $this->iMaintainerId);
+
+        if(!$hResult)
+            return FALSE;
+
+        return TRUE;
     }
 
     function deleteMaintainer($oUser, $iAppId = null, $iVersionId = null)



More information about the wine-cvs mailing list