projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed extension module update and deletion.
[fa-stable.git]
/
admin
/
print_profiles.php
diff --git
a/admin/print_profiles.php
b/admin/print_profiles.php
index 99ef82e1d5144c6e1e9645f616751c8974708177..02e3701c55a9a2af8b13a55c1f5f53a16614ca96 100644
(file)
--- a/
admin/print_profiles.php
+++ b/
admin/print_profiles.php
@@
-77,7
+77,7
@@
function check_delete($name)
{
// check if selected profile is used by any user
if ($name=='') return 0; // cannot delete system default profile
{
// check if selected profile is used by any user
if ($name=='') return 0; // cannot delete system default profile
- $sql = "SELECT * FROM ".TB_PREF."users WHERE print_profile=
'$name'"
;
+ $sql = "SELECT * FROM ".TB_PREF."users WHERE print_profile=
".db_escape($name)
;
$res = db_query($sql,'cannot check printing profile usage');
return db_num_rows($res);
}
$res = db_query($sql,'cannot check printing profile usage');
return db_num_rows($res);
}