Closed (fixed)
Project:
Login Destination
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2007 at 23:24 UTC
Updated:
6 Sep 2007 at 08:11 UTC
In testing Login destination I have run into some problems with the condition settings.
Running fresh load of Drupal5 with Bio.module and Login_destination.
I am trying to use the php snippet condition settings.
I have entered this code
global $user;
$result = db_query('select * from {node} where uid = %d and type = "bio"', $user->uid);
return (db_num_rows($result) == 0);but it returns true and redirects no matter how many bio records exist (0,1,2)
Any ideas?
Comments
Comment #1
ardas commentedPlease, debug this code to find out how many rows were found - use drupal_set_message() to output a number of records. If it will be always 0, you probably need to check your database query.
Comment #2
ardas commentedDoesn't relate to this module.