warnings fix
authorniekt0 <niekt0@kyberia.cz>
Wed, 28 Sep 2011 22:12:32 +0000 (00:12 +0200)
committerniekt0 <niekt0@kyberia.cz>
Wed, 28 Sep 2011 22:12:32 +0000 (00:12 +0200)
wwwroot/backend/mysql/backend.inc
wwwroot/inc/smarty/node_methodz/function.get_linked_nodes.php

index 0f66b8d55d6536372660be14ea59904788e63080..bd765afeb26b58f1d8a4409df126c954d3c0b32b 100644 (file)
@@ -541,7 +541,7 @@ public static function logout() {
 
 // getNodesByType
 
-//
+// XXX
 // Secure
 // returns xxx
  
@@ -576,10 +576,11 @@ public static function getNodesByType($vector,$user_id,$type,$orderby,$offset,$l
 
 // getLinkedNodes
 
-// 
+// XXX
+// Secure
 // returns XXX
 
-function getLinkedNodes($node_id,$orderby,$offset,$listing_amount) {
+public static function getLinkedNodes($node_id,$orderby,$offset,$listing_amount) {
        global $db;
 
        if ((!is_numeric($node_id))
index ad44bacf7fd01d86378be157ee528f953f6dabcd..9a846e4022a0e5ec6c54c703cad521489eb1d231 100644 (file)
@@ -8,8 +8,8 @@ function smarty_function_get_linked_nodes($params,&$smarty) {
         elseif (is_numeric($params['listing_amount'])) $listing_amount=$params['listing_amount'];
         else $listing_amount=DEFAULT_LISTING_AMOUNT;
 
-        if (is_numeric($params['offset'])) $offset=$params['offset'];
-       elseif (is_numeric($_POST['offset'])) $offset=$_POST['offset'];
+        if (isset($params['offset']) && is_numeric($params['offset'])) $offset=$params['offset'];
+       elseif (isset($_POST['offset']) && is_numeric($_POST['offset'])) $offset=$_POST['offset'];
        else $offset=0;
 
        if (isset($params['node_id'])) {
This page took 0.133138 seconds and 4 git commands to generate.