Closed (fixed)
Project:
User Relationships
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2007 at 23:44 UTC
Updated:
23 Dec 2007 at 10:13 UTC
function user_relationships_type_edit($rtid = NULL) {
if (arg(3) == "edit" && $rid >= 0) {
$relationship_type = user_relationships_relationship_type_load(array('rtid' => $rtid));
}
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Name'),
'#maxlength' => 255,
'#default_value' => $relationship_type->name,
'#description' => t("Example: buddy, friend, coworker, spouse."),
'#required' => TRUE,
'#weight' => -10,
);
//....
That should be
if (arg(3) == "edit" && $rtid >= 0) {right?
Comments
Comment #1
sprsquish commentedyep, that's right.
Comment #2
sprsquish commented