mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 23:05:30 +02:00
2011-08-04 Javier Lanz <javier.lanz@artica.es>
* godmode/setup/links.php: Fixed blank names creating & updating links Fixes: #3371409 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4671 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
fc5c5d9ab8
commit
74acf0bfcb
@ -1,3 +1,9 @@
|
|||||||
|
2011-08-04 Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
|
* godmode/setup/links.php: Fixed blank names creating & updating links
|
||||||
|
|
||||||
|
Fixes: #3371409
|
||||||
|
|
||||||
2011-08-04 Javier Lanz <javier.lanz@artica.es>
|
2011-08-04 Javier Lanz <javier.lanz@artica.es>
|
||||||
|
|
||||||
* godmode/setup/os.php: Fixed blank names in OS names
|
* godmode/setup/os.php: Fixed blank names in OS names
|
||||||
|
@ -31,7 +31,9 @@ if (isset($_POST["create"])){ // If create
|
|||||||
$name = get_parameter_post ("name");
|
$name = get_parameter_post ("name");
|
||||||
$link = get_parameter_post ("link");
|
$link = get_parameter_post ("link");
|
||||||
|
|
||||||
$result = db_process_sql_insert("tlink", array('name' => $name, 'link' => $link));
|
$result = false;
|
||||||
|
if ($name != '')
|
||||||
|
$result = db_process_sql_insert("tlink", array('name' => $name, 'link' => $link));
|
||||||
|
|
||||||
if (! $result)
|
if (! $result)
|
||||||
echo "<h3 class='error'>".__('There was a problem creating link')."</h3>";
|
echo "<h3 class='error'>".__('There was a problem creating link')."</h3>";
|
||||||
@ -45,8 +47,10 @@ if (isset($_POST["update"])){ // if update
|
|||||||
$id_link = io_safe_input($_POST["id_link"]);
|
$id_link = io_safe_input($_POST["id_link"]);
|
||||||
$name = io_safe_input($_POST["name"]);
|
$name = io_safe_input($_POST["name"]);
|
||||||
$link = io_safe_input($_POST["link"]);
|
$link = io_safe_input($_POST["link"]);
|
||||||
|
|
||||||
$result = db_process_sql_update("tlink", array('name' => $name, 'link' => $link), array('id_link' => $id_link));
|
$result = false;
|
||||||
|
if ($name != '')
|
||||||
|
$result = db_process_sql_update("tlink", array('name' => $name, 'link' => $link), array('id_link' => $id_link));
|
||||||
|
|
||||||
if (! $result)
|
if (! $result)
|
||||||
echo "<h3 class='error'>".__('There was a problem modifying link')."</h3>";
|
echo "<h3 class='error'>".__('There was a problem modifying link')."</h3>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user