Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
38a8d04f
Commit
38a8d04f
authored
17 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#158440
by AjK: fixed E_NOTICEs.
parent
6ec2ff7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/taxonomy/taxonomy.module
+5
-4
5 additions, 4 deletions
modules/taxonomy/taxonomy.module
with
5 additions
and
4 deletions
modules/taxonomy/taxonomy.module
+
5
−
4
View file @
38a8d04f
...
...
@@ -1031,11 +1031,12 @@ function taxonomy_get_tree($vid, $parent = 0, $depth = -1, $max_depth = NULL) {
*/
function
taxonomy_get_synonyms
(
$tid
)
{
if
(
$tid
)
{
$synonyms
=
array
();
$result
=
db_query
(
'SELECT name FROM {term_synonym} WHERE tid = %d'
,
$tid
);
while
(
$synonym
=
db_fetch_array
(
$result
))
{
$synonyms
[]
=
$synonym
[
'name'
];
}
return
$synonyms
?
$synonyms
:
array
()
;
return
$synonyms
;
}
else
{
return
array
();
...
...
@@ -1443,7 +1444,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
* Page to edit a vocabulary.
*/
function
taxonomy_admin_vocabulary_edit
(
$vocabulary
)
{
if
(
$_POST
[
'op'
]
==
t
(
'Delete'
)
||
$_POST
[
'confirm'
])
{
if
(
(
isset
(
$_POST
[
'op'
])
&&
$_POST
[
'op'
]
==
t
(
'Delete'
)
)
||
isset
(
$_POST
[
'confirm'
])
)
{
return
drupal_get_form
(
'taxonomy_vocabulary_confirm_delete'
,
$vocabulary
->
vid
);
}
return
drupal_get_form
(
'taxonomy_form_vocabulary'
,
(
array
)
$vocabulary
);
...
...
@@ -1453,7 +1454,7 @@ function taxonomy_admin_vocabulary_edit($vocabulary) {
* Page to edit a vocabulary term.
*/
function
taxonomy_admin_term_edit
(
$tid
)
{
if
(
$_POST
[
'op'
]
==
t
(
'Delete'
)
||
$_POST
[
'confirm'
])
{
if
((
isset
(
$_POST
[
'op'
]
)
&&
$_POST
[
'op'
])
==
t
(
'Delete'
)
||
isset
(
$_POST
[
'confirm'
])
)
{
return
drupal_get_form
(
'taxonomy_term_confirm_delete'
,
$tid
);
}
if
(
$term
=
(
array
)
taxonomy_get_term
(
$tid
))
{
...
...
@@ -1567,4 +1568,4 @@ function taxonomy_hook_info() {
),
),
);
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment