<?php
-# Copyright (C) 2009 Jason Woofenden
+# Copyright (C) 2010 Jason Woofenden
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
foreach($args as $arg_str) {
list($src, $dest, $space, $c1, $c2, $c3) = str_split($arg_str);
- $ord = db_reposition($table, $before[$src], $dest);
+ $ord = db_reposition($table, $before[$src], $dest, 'ord', 'test record');
db_update($table, 'ord', $ord, 'where id=%i', $before[$src]);
$after = db_get_column($table, 'id', 'order by ord');
$ords = db_get_column($table, 'ord', 'order by ord');