Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11908
Modified Files:
profile.php
Log Message:
Add message for situation where there is no user matching a requested ID.
Index: profile.php
===================================================================
RCS file: /cvsroot/openfirst/members/profile.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** profile.php 23 Dec 2003 16:22:59 -0000 1.23
--- profile.php 28 Feb 2004 02:54:25 -0000 1.24
***************
*** 16,23 ****
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
--- 16,19 ----
***************
*** 126,129 ****
--- 122,128 ----
// Collect information to display in persons profile
$query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_GET["id"] . "';");
+ if(ofirst_dbnum_rows($query) == 0) {
+ echo("There is no user matching your request.");
+ }
while($q = ofirst_dbfetch_object($query)) {
|