Remove superflous function
authorJoey Schulze <joey@infodrom.org>
Wed, 22 Jan 2014 10:18:18 +0000 (11:18 +0100)
committerJoey Schulze <joey@infodrom.org>
Wed, 22 Jan 2014 10:18:18 +0000 (11:18 +0100)
ordersatz.php

index 0d8f7e7..01b5c09 100644 (file)
    */
 
 
-function get_title($id)
-{
-  global $db;
-
-  $query = sprintf('SELECT name FROM metro_ordersatz WHERE id = %d', $id);
-  $sth = $db->query($query);
-  $row = $sth->fetch();
-  if ($row) return 'Ordersatz für ' . $row['name'];
-  else return 'Unbekannter Ordersatz';
-}
-
 $href = "new Rico.TableColumn.link('./?mask=metro__ordersatz_pos&id={0}')";
 
 # INSERT INTO metro_ordersatz_pos (ordersatz,artikel,sys_user,sys_edit) SELECT ORDERID,id,'joey',now() FROM metro_artikel;