librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1620] catch fixups


From: Clint Adams
Subject: [Librefm-commits] [1620] catch fixups
Date: Fri, 15 May 2009 03:26:39 +0000

Revision: 1620
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1620
Author:   clint
Date:     2009-05-15 03:26:39 +0000 (Fri, 15 May 2009)
Log Message:
-----------
catch fixups

Modified Paths:
--------------
    trunk/nixtape/data/Group.php

Modified: trunk/nixtape/data/Group.php
===================================================================
--- trunk/nixtape/data/Group.php        2009-05-15 03:24:06 UTC (rev 1619)
+++ trunk/nixtape/data/Group.php        2009-05-15 03:26:39 UTC (rev 1620)
@@ -55,7 +55,7 @@
                        try {
                                $res = $adodb->GetRow('SELECT * FROM Groups 
WHERE lower(groupname) = ' . $adodb->qstr(strtolower($name)));
                        }
-                       catch {
+                       catch (exception $e) {
                                header('Content-Type: text/plain');
                                exit;
                        }
@@ -107,7 +107,7 @@
                try {
                        $res = $adodb->GetRow("SELECT * FROM Groups ORDER BY 
{$random}() LIMIT 1");
                }
-               catch {
+               catch (exception $e) {
                        return $res;
                }
                if ($res) {
@@ -149,7 +149,7 @@
                try {
                        $res = $adodb->GetRow($q);
                }
-               catch {
+               catch (exception $e) {
                        return $res;
                }
                if ($res) {
@@ -171,7 +171,7 @@
                try {
                        $res = $adodb->Execute($q);
                }
-               catch {
+               catch (exception $e) {
                        return $res;
                }
 
@@ -180,7 +180,7 @@
                try {
                        $res = $adodb->GetOne($q);
                }
-               catch {
+               catch (exception $e) {
                        return $res;
                }
                if (!$res)
@@ -231,7 +231,7 @@
                        }
 
                }
-               catch {
+               catch (exception $e) {
                        header('Content-Type: text/plain');
                        exit;
                }
@@ -269,7 +269,7 @@
                try {
                        $res = $adodb->Execute($q);
                }
-               catch {
+               catch (exception $e) {
                        header('Content-Type: text/plain');
                        exit;
                }
@@ -344,7 +344,7 @@
                                                (int)($user->uniqueid, 
'integer'),
                                                time()));
                }
-               catch {
+               catch (exception $e) {
                        return false;
                }
 
@@ -366,9 +366,9 @@
                                                (int)($this->gid),
                                                (int)($user->uniqueid)));
                }
-catch {
+               catch (exception $e) {
                        return false;
-}
+               }
 
                $this->users[ $user->name ] = null;
                // The array key still exists though. That's annoying. PHP 
needs an equivalent of Perl's 'delete'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]