Warning: session_start(): open(/var/lib/php/sessions/sess_bgiookqjgkqemivf22p956bi8q, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static JTable dataToTable(O data) {
ret dataToTable(showTable(), data);
}
static JTable dataToTable(O data, S title) {
ret dataToTable(showTable(title), data);
}
static JTable dataToTable(JTable table, O data) {
ret dataToTable(table, data, false);
}
// "now" is ignored now
static JTable dataToTable(JTable table, O data, bool now) {
new L rows;
new L cols;
if (data instanceof L) {
for (O x : (L) data) pcall {
rows.add(dataToTable_makeRow(x, cols));
}
} else if (data instanceof Map) {
Map map = cast data;
for (O key : map.keySet()) {
O value = map.get(key);
rows.add(litlist(structureOrTextForUser(key), structureOrTextForUser(value)));
}
} else if (data != null)
print("Unknown data type: " + data);
fillTableWithData(table, rows, cols);
ret table;
}