auto-format all files; add table-definitions to test-bootstrap file
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -21,19 +21,17 @@
|
||||
* Returns an integer of the given value which isn't negative.
|
||||
* Returns -1 if the given value was -1.
|
||||
*
|
||||
* @param any The value
|
||||
* @param
|
||||
* any The value
|
||||
* @return int The positive value
|
||||
* @author Florian Lippert <flo@syscp.org>
|
||||
*/
|
||||
|
||||
function intval_ressource($the_value)
|
||||
{
|
||||
$the_value = intval($the_value);
|
||||
|
||||
if($the_value < 0
|
||||
&& $the_value != '-1')
|
||||
{
|
||||
$the_value*= - 1;
|
||||
if ($the_value < 0 && $the_value != '-1') {
|
||||
$the_value *= - 1;
|
||||
}
|
||||
|
||||
return $the_value;
|
||||
|
||||
Reference in New Issue
Block a user