summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Boyer2008-10-08 00:22:20 (GMT)
committerSam Boyer2008-10-08 00:22:20 (GMT)
commitac2f772f5d5d48a4489dd9d83720358148fdbcde (patch)
tree9662c1953df88e06e524848e520ec95d87029e3b
parent69b6a0d9872dc8b82956f74446b359eafe52b2a0 (diff)
Moved array variable outside of double-quotes for syntax highlighting clarity.
-rw-r--r--panels_mini/panels_mini.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/panels_mini/panels_mini.admin.inc b/panels_mini/panels_mini.admin.inc
index 976a49d..57620d2 100644
--- a/panels_mini/panels_mini.admin.inc
+++ b/panels_mini/panels_mini.admin.inc
@@ -503,7 +503,7 @@ function panels_mini_edit_form_validate($form, &$form_state) {
else {
$query = "SELECT pid FROM {panels_mini} WHERE name = '%s'";
if (!empty($form_state['values']['pid']) && is_numeric($form_state['values']['pid'])) {
- $query .= " AND pid != $form_state['values'][pid]";
+ $query .= ' AND pid != ' . $form_state['values']['pid'];
}
if (db_result(db_query($query, $form_state['values']['name']))) {
form_error($form['left']['settings']['name'], t('Panel name must be unique.'));